Last active
December 18, 2018 19:53
-
-
Save jhewlett/9195dae994f4775b4bbed8842183c521 to your computer and use it in GitHub Desktop.
Nested bind
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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