getify / monio

The most powerful IO monad implementation in JS, possibly in any language!
http://monio.run
MIT License
1.05k stars 58 forks source link

Fix detail #13

Closed fkerekiglobant closed 2 years ago

fkerekiglobant commented 2 years ago

In the text, the example

const myNextAge = chain( myAge, v => Identity(v + 1) ); // { val: 42 }

doesn't really produce an object with a val attribute; it just returns 42.