4 ms·
>but overall, for loops are much more preferable to map/filter/reduce I strongly disagree on this one. A .map or a .filter are clear and concise while filterin
by RhodesianHunter 4y ago
>but overall, for loops are much more preferable to map/filter/reduce
I strongly disagree on this one. A .map or a .filter are clear and concise while filtering or mapping, particularly in a streaming situation where you're only iterating the collection once.
You can trivially write code using this paradigm that's easily readable, performant, and takes up a handful of lines that would take dozens in Go.