From 8f612879b6854f6151e475c02ff5248cf19d12ec Mon Sep 17 00:00:00 2001 From: sksamuel Date: Sat, 30 Dec 2023 12:53:23 -0600 Subject: [PATCH] Added mapOf --- .../src/main/kotlin/com/sksamuel/tribune/core/Parsers.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tribune-core/src/main/kotlin/com/sksamuel/tribune/core/Parsers.kt b/tribune-core/src/main/kotlin/com/sksamuel/tribune/core/Parsers.kt index 582e983..272a2d7 100644 --- a/tribune-core/src/main/kotlin/com/sksamuel/tribune/core/Parsers.kt +++ b/tribune-core/src/main/kotlin/com/sksamuel/tribune/core/Parsers.kt @@ -25,12 +25,14 @@ object Parsers { /** * An identity [Parser] for nullable doubles. */ - val nullableDouble : Parser = Parser() + val nullableDouble: Parser = Parser() /** * An identity [Parser] for nullable floats. */ - val nullableFloat : Parser = Parser() + val nullableFloat: Parser = Parser() + + fun mapOf() = Parser>() /** * A [Parser] for nullable types, which returns the input if not null, or an error if null.