Skip to content

Instantly share code, notes, and snippets.

@choonkending
Last active June 14, 2017 00:03
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 choonkending/98ddd64309e9d509aa71d67a5c6aaf28 to your computer and use it in GitHub Desktop.
Save choonkending/98ddd64309e9d509aa71d67a5c6aaf28 to your computer and use it in GitHub Desktop.
map flatMap fold
Some(x) Applies function, f, provided as argument to the value x and returns the result wrapped in a Some. Applies function, f, provided as argument to the value x and returns the result as-is. Applies function, f, provided as argument to the value x and returns that value
None Does nothing Does nothing Applies function, ifEmpty, provided as argument and returns that value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment