The Self-Tuning Piano System
youtube.com5 pointsby mjdwitt0 comments
// non-tail
expt(b, x):
if x == 0: 1
else: x * expt(b, x-1)
// tail-recursive
tail-expt(b, x, ans):
if x == 0: ans
else: tail-expt(b, x-1, x*ans)
For these definitions: expt(2, 3) == tail-expt(2, 3, 1)
And while you very well could make the translation from whatever the original was to "It will rain tomorrow," it might not be a literal one that preserves the original tenses, which would obscure exactly what he was trying to point out.