News for hackers. Stuff that matters.
Re:Recursion? We don't need no stinking recursion by moomin on Monday May 21, 2018 @02:49PM (#17120739)
Multirec is an example of a refold. They are surprisingly common in real problems you encounter. The Haskell equivalent is hylo. https://www.stackage.org/haddock/lts-11.10/recursion-schemes...
Re:Recursion? We don't need no stinking recursion by TheBestKorea on Thursday May 24, 2018 @08:40AM (#17143342)
Something which is perhaps overlooked in JS is that there is a recursion depth built into many engines. Using pure iteration circumvents this making the engine hang instead of error if your algorithm would loop infinitely.