Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Naw, 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: