Hacker News new | ask | show | jobs
by eutectic 3478 days ago
Presumably there is a pass to turn f(recur(x), y) into recur(f(y, acc), x) and then tail-call optimization can be applied. This works for any associative f.