MostlyAdequate / mostly-adequate-guide

Mostly adequate guide to FP (in javascript)
Other
23.44k stars 1.87k forks source link

ch08 pure-error-handling zoltar append => concat #585

Closed deleite closed 4 years ago

deleite commented 4 years ago

In one of the example it says that:

const fortune = compose(append('If you survive, you will be '), toString, add(1)); But then the result would be 15If you survive, you will That should be const fortune = compose(concat('If you survive, you will be '), toString, add(1));

deleite commented 4 years ago

nvm, I had the older version from gitbooksio =/