News for hackers. Stuff that matters.
Re:What if you couldn’t program with loops? by BalinKing on Monday July 15, 2019 @01:49AM (#20438466)
(Out of curiosity, have you considered starting at raw recursion – like in your example – but then moving on to using utility functions like `map` from e.g. Ramda or lodash?)
Re:What if you couldn’t program with loops? by yjhoney on Monday July 15, 2019 @02:11AM (#20438544)
Yes. curriculum starts off with recursion, then moves on to higher order functions and nobody touches recursion again.