diff options
Diffstat (limited to 'tests/func4.bth')
-rw-r--r-- | tests/func4.bth | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/func4.bth b/tests/func4.bth new file mode 100644 index 0000000..7c04cf3 --- /dev/null +++ b/tests/func4.bth @@ -0,0 +1,7 @@ +(do + (set f1 (fn (x) (+ x 10))) + (set f2 (fn (x) (* x 10))) + (set g (fn (f x) (puts (f x)) (puts (f x)))) + (g f1 26) + (g f2 6) + nil) |