Skip to content

Instantly share code, notes, and snippets.

@mikhailshilkov
Created December 19, 2018 23:08
Show Gist options
  • Save mikhailshilkov/2999912f9169608b66535a66597f0367 to your computer and use it in GitHub Desktop.
Save mikhailshilkov/2999912f9169608b66535a66597f0367 to your computer and use it in GitHub Desktop.
let workflow wishlist = async {
let! matches =
wishlist.Wishes
|> List.map findMatchingGift
|> Async.Parallel
let gift = pickGift (List.concat matches)
let reservation = { Kid = wishlist.Kid; Product = gift }
do! reserve reservation
return reservation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment