We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 755e47e commit 1db4b69Copy full SHA for 1db4b69
factorial.axl
@@ -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