a recursive function instead of an iterative one. ...
# arrow
p
a recursive function instead of an iterative one. Use
tailrec
to get optimization, and the IDE tells you if you’re doing it wrong. This isn’t mandatory but makes my eye stop twitching when I read
var
.