monet / monet.js

monet.js - Monadic types library for JavaScript
https://monet.github.io/monet.js/
MIT License
1.6k stars 114 forks source link

Fix example in IO docs #234

Open cawabunga opened 3 years ago

cawabunga commented 3 years ago

write(id) returns just a regular function. I was choosing between read(id) and write(id)('foo'), decided to go with second, as for me it emphasises that invocation changes nothing.