Commit 9c6835a6 authored by James's avatar James

Doc fixes

parent b86b5f92
Pipeline #18408466 passed with stage
in 1 minute and 8 seconds
......@@ -238,7 +238,7 @@ const f = foldCase (Maybe.Y) ( 0, x => x + 1 )
f ( Maybe.Y(2) ) //=> 3
f ( Maybe.N() ) //=> Type Error!
f ( Maybe.N() ) //=> 0
```
#### mapCase
......@@ -252,7 +252,7 @@ const f = mapCase (Maybe.Y) ( x => x + 1 )
f ( Maybe.Y(2) ) //=> Maybe.Y(3)
f ( Maybe.N() ) //=> Type Error!
f ( Maybe.N() ) //=> Maybe.N()
```
`mapCase`, like `map` will not execute visitor functions on valueless cases.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment