You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original example `let resOk11 = bimap ((+) 1) string (Ok 10)` implied that the first function would be applied to the Result when it is `Ok` (returning OK 11). However, this is backwards to the actual implementation:
```fsharp
let resOk11 = bimap ((+) 1) string (Ok 10)
// val resOk11: Result<string,int> = Ok "10"
```
I have switched the order of the functions so that it produces the result expected (based on the name of the value binding `resOk11`):
```fsharp
let resOk11 = bimap string ((+) 1) (Ok 10)
// val resOk11: Result<int,string> = Ok 11
```
0 commit comments