4 ms·
True, the example could be better: const addOne = (n) => { return n + 1} map(addOne)([1, 2, 3]) > [2, 3, 4] Would decompose the addOne into its own sta
by Rodeoclash 5y ago
True, the example could be better:
const addOne = (n) => { return n + 1}
map(addOne)([1, 2, 3])
> [2, 3, 4]
Would decompose the addOne into its own standalone function.
My only excuse was that I was in a hurry due to Minecraft time with my son.