Factorial: Difference between revisions

→‎Soda: Tail recursive
(Add Refal)
(→‎Soda: Tail recursive)
Line 9,744:
===Tail recursive===
<syntaxhighlight lang="soda">
@tailrec
_tailrec_fact (n : Int) (accum : Int) : Int =
if n < 2
2

edits