Skip to content

Instantly share code, notes, and snippets.

View Solid-Color-Labs's full-sized avatar

Oliver Klesing Solid-Color-Labs

View GitHub Profile
def main(args: Array[String]): Unit = {
val myMap = Map("int" -> 1, "double" -> 2.5, "string" -> "my string")
val mappedMap = myMap.mapValues {
case s: String => Option(s).getOrElse("")
// case b: Boolean => Option.fold()
}
}