Skip to content

Instantly share code, notes, and snippets.

@delitescere
Created May 4, 2012 11:51
Show Gist options
  • 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