Skip to content

Commit

Permalink
Update recursive factorial
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusRich committed Nov 13, 2020
1 parent 3c2a61f commit b2f71ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/recursive-factorial.lit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
factorial_of = { |n|
if(n == 1) return 1
if(n <= 1) return 1

return n + factorial_of(n - 1)
}
Expand Down

0 comments on commit b2f71ed

Please sign in to comment.