Recursion vs Iteration in Q/KDB+

Mathematically, recursion and iteration both describe the repeated application of a rule to successive results. In programming, they often…