MostlyAdequate / mostly-adequate-guide

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

exercises/ch05/solution_c.js changed #530

Closed bma3131 closed 4 years ago

bma3131 commented 5 years ago

exercises/ch05/exercise_c.js uses concat function. It also hints that the flip function may come in handy. But solution is done with append function and it doesn't use flip.

ubmit commented 5 years ago

I don't think this has to change, considering that append("foo") and flip(concat, "foo") are the same

// append :: String -> String -> String
const append = flip(concat);
KtorZ commented 4 years ago

Thanks for catching this! I've simply removed the hint in 3802257.

Cheers!