Skip to content

Instantly share code, notes, and snippets.

@jhewlett
Last active December 18, 2018 19:53
Show Gist options
  • Save jhewlett/9195dae994f4775b4bbed8842183c521 to your computer and use it in GitHub Desktop.
Save jhewlett/9195dae994f4775b4bbed8842183c521 to your computer and use it in GitHub Desktop.
Nested bind
let findThing id =
findThingA id
|> Option.bind (fun thingA ->
findThingB id
|> Option.bind (fun thingB ->
combine thingA thingB))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment