Created
June 15, 2016 19:16
-
-
Save chamook/e216da480582b6aa8848ec116a28858d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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