Last active
October 30, 2017 22:41
-
-
Save joegaudet/94a49798a79d59f0298d06233605fd86 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Option<String> maybeString = someFunction(); | |
String foo = maybeString.getOrElse("I'm some other string") | |
String foo2 = maybeString.getOrElse(() -> "I'm a string returned from a java lambda which has a -> instead of a =>.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment