I’m confused. Do you not think that would have been a good opportunity to teach that person what folds are for?
Fold/reduce is fundamental. It’s weird to me that its use would be discouraged or outlawed somewhere.
Fold/reduce is fundamental. It’s weird to me that its use would be discouraged or outlawed somewhere.
The language I use has various flavours of `for`. It also has various flavours of map and fold. It also has recursion.
They each do different things. Those differences are meaningful and useful. Why would you limit yourself to just using `for`?