Inget jag hatar mer än stackspill som tvingar dig att förvandla en elegant rekursiv funktion till en iterativ, manuell stackbaserad funktion.