Skip to content

Commit 1db4b69

Browse files
committed
[feat:root] add factorial example
1 parent 755e47e commit 1db4b69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

factorial.axl

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(defun factorial [(num: int)] {
2+
(if (== num 1) 1 (*i num (factorial (-i num 1))))
3+
})
4+
5+
(print (factorial 5))

0 commit comments

Comments
 (0)