in reply to Re^6: reduce like iterators
in thread reduce like iterators
In other words IT isn't math!
But I prefer solutions where I don't have to document (and keep in mind) rare side cases.
Especially in this case, simulating reduce's approach to start with the first two values is clean and elegant.
Cheers Rolf
|
---|