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
In that youtube link you can see monad transformers such as mapT, mapTT, flatMapT, else.
By using mapT we can change our codes as below.
Identity(Maybe.of(1)).map(maybe => maybe.map(x => x + 1)) // this code transforms Identity(Just(1)) to Identity(Just(2))
Identity(Maybe.of(1)).mapT(x => x + 1) // this code does same thing as above
I know there is 'MonadT' styled monad transformation in Haskell world, but I think both can exist in monet.js
Need some comment and idea about this.
The text was updated successfully, but these errors were encountered:
Protocol-Oriented Monad Transformer
In that youtube link you can see monad transformers such as mapT, mapTT, flatMapT, else.
By using mapT we can change our codes as below.
I know there is 'MonadT' styled monad transformation in Haskell world, but I think both can exist in monet.js
Need some comment and idea about this.
The text was updated successfully, but these errors were encountered: