Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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