Skip to content

Instantly share code, notes, and snippets.

@chamook
Created June 15, 2016 19:16
Show Gist options
  • Select an option

  • Save chamook/e216da480582b6aa8848ec116a28858d to your computer and use it in GitHub Desktop.

Select an option

Save chamook/e216da480582b6aa8848ec116a28858d to your computer and use it in GitHub Desktop.
module AsyncResult =
let map f x =
async {
let! x' = x
return x' |> Result.map f
}
let bind f x =
async {
let! x' = x
return x' |> Result.bind f
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment