News for hackers. Stuff that matters.
Re:Mindset Shifts for Functional Programming by codr7 on Wednesday April 05, 2023 @11:16AM (#35455640)
Recursion vs iteration reminds me of ordered sets vs hash tables.

Maybe partly because ordered sets are often implemented as trees, which are definitely easier to traverse recursively.

I find recursion nicer to work with mentally; continuous rather than discrete, with less edge cases to consider.

There are no comments on this comment yet.