Recursion is almost never the correct solution for any problem in a language that doesn't support tail call optimization.
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.