Skip to content

Instantly share code, notes, and snippets.

@delitescere
Created May 4, 2012 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save delitescere/2594342 to your computer and use it in GitHub Desktop.
Save delitescere/2594342 to your computer and use it in GitHub Desktop.
aMap.get("a key that might not exist")
.map(expressionUsingTheValue(_))
.getOrElse(anotherExpression)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment