summaryrefslogtreecommitdiff
path: root/simple.int
diff options
context:
space:
mode:
Diffstat (limited to 'simple.int')
-rw-r--r--simple.int3
1 files changed, 2 insertions, 1 deletions
diff --git a/simple.int b/simple.int
index ad6d789..fe34eab 100644
--- a/simple.int
+++ b/simple.int
@@ -1,2 +1,3 @@
+[def (INT fact) [(INT n)] [if n [* n [fact [- n 1]]] 1]]
[def (INT double) [(INT x)] [* 2 x]]
-[def (INT main) [] [debug_int [+ 3 [double 4]]]]
+[def (INT main) [] [debug_int [fact 10]]]