Hacker News new | ask | show | jobs
by kloop 720 days ago
Also if it's big enough that recursing will blow out your stack.

Yes, you can throw the nodes on an array in the heap to allow tail recursion, but at that point you're going to be losing to a map with all but the biggest datasets, and even then the copies really aren't desirable