|
|
|
|
|
by frankquist
2929 days ago
|
|
Could you elaborate on that last part? I don't understand how for loops would be more maintainable and less error prone. They have more moving parts and therefore more room for error. Isn't the value proposition of the aforementioned functions exactly avoiding easy to mess up loops? |
|
Secondly and this is a personal preference but the code looks more readable when the for statements are on different lines telling you which array is being iterated compared to the nested functions where the output of one function is piped as input to another.