summaryrefslogtreecommitdiff
path: root/tests/func2.bth
diff options
context:
space:
mode:
Diffstat (limited to 'tests/func2.bth')
-rw-r--r--tests/func2.bth6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/func2.bth b/tests/func2.bth
new file mode 100644
index 0000000..fd16eda
--- /dev/null
+++ b/tests/func2.bth
@@ -0,0 +1,6 @@
+(do
+ (set f1 (fn (a) (* a a)))
+ (set f2 (fn (a b) (+ a b)))
+ (puts (f1 6))
+ (puts (f2 20 40))
+ (f1 (f2 2 1)))