Skip to content

Instantly share code, notes, and snippets.

@choonkending
Last active June 4, 2017 13:04
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/3e6d2d8531de60fb327f7e2c043e9d47 to your computer and use it in GitHub Desktop.
Save choonkending/3e6d2d8531de60fb327f7e2c043e9d47 to your computer and use it in GitHub Desktop.
Some(x) None
map map<V>(f: (value: U) => V): Some<V> map<V>(f: (value: U) => V): None<V>
flatMap flatMap<V>(f: (value: U) => Option<V>): Option<V> flatMap<V>(f: (value: U) => Option<V>): None<V>
fold fold<V>(ifEmpty: () => V, f: (value: U) => V): V fold<V>(ifEmpty: () => V, f: (value: U) => V): V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment