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
In reply to Re^7: reduce like iterators
by LanX
in thread reduce like iterators
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |