2 ms·
What the previous user means is that reduce is not a function that returns a list (albeit it can). It just accumulates over some value, and that value can be a
by epolanski 1y ago
What the previous user means is that reduce is not a function that returns a list (albeit it can).
It just accumulates over some value, and that value can be anything.
- chuckadams 1y agoNaw, GP is right, I'd forgotten about the limits of primitive recursion. But for almost any given real-world problem, it's something you can get away with forgetting.