|
|
|
|
|
by mabster
673 days ago
|
|
I don't code in JS very often, so there's that. Both sets of code were fine, but I understood the loop variant instantly, while it took me a bit longer with the FP code. As a side note: The only real JS I did was optimising some performance critical code, and I did have to refactor a number of FP chains back to loops. This was because the FP way keeps constructing a new list for each step which was slow. |
|