aboutsummaryrefslogtreecommitdiffstats
path: root/samples/sample1.code
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2021-11-25 10:05:01 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2021-11-25 19:01:31 +0200
commit4abdbaabd69a5aac827cb4e2f98c27e5661885cf (patch)
tree4cfa84a9959eebed56d6b276c7c2e2b6ea9b8403 /samples/sample1.code
parentc04609bcdb7c7952501ddffc82fb97246ae0f6d4 (diff)
Add license and readme
Diffstat (limited to 'samples/sample1.code')
-rw-r--r--samples/sample1.code14
1 files changed, 0 insertions, 14 deletions
diff --git a/samples/sample1.code b/samples/sample1.code
deleted file mode 100644
index 168421b..0000000
--- a/samples/sample1.code
+++ /dev/null
@@ -1,14 +0,0 @@
-triangle n = int.eq? n 1
- 1
- (int.add
- n
- (triangle (int.sub n 1)));
-
-triangle 500;
-
-# factorial n =
-# int.eq? n 0
-# 1
-# (int.mul n (factorial (int.sub n 1)));
-
-# factorial 20; \ No newline at end of file