Created
March 27, 2018 13:10
-
-
Save ThomasKruegl/5c7dc860ff693d01c8a812e192f64cd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val bar: Option[() => String] = Option(() => "five") | |
val matchResult: String = bar match { | |
case Some(a) => a() | |
case None => "None" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment