Skip to content

Instantly share code, notes, and snippets.

@siddhartha-gadgil
Created March 22, 2014 11:50
Show Gist options
  • Save siddhartha-gadgil/9706008 to your computer and use it in GitHub Desktop.
Save siddhartha-gadgil/9706008 to your computer and use it in GitHub Desktop.
_flatMapOption_ : {A : Set} → {B : Set} → Option A → (A → Option B) → Option B
None flatMapOption _ = None
(Some a) flatMapOption f = f a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment