aboutsummaryrefslogtreecommitdiffstats
path: root/examples/purity-test.milch
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2022-12-06 15:40:52 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2022-12-06 15:40:52 +0200
commite73ad00f44479e3065ccf12d07ca3ae22ca1f3f0 (patch)
tree628c4957a9e53815d1ccf49f87a1002ccc059ac6 /examples/purity-test.milch
parent21ee11d3df3000a77d5b36d3c7e0a18d9a07d599 (diff)
Remove ! from end of builtin top-level functions
Diffstat (limited to 'examples/purity-test.milch')
-rw-r--r--examples/purity-test.milch8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/purity-test.milch b/examples/purity-test.milch
index 6e8faea..f7c77e5 100644
--- a/examples/purity-test.milch
+++ b/examples/purity-test.milch
@@ -1,22 +1,22 @@
; utils
-(let! println! (\![x]
+(let println! (\![x]
(print! (fmt "{0}\n" [x]))))
; pure vs. impure demo
; this is a pure function
-(let! f (\[x] x))
+(let f (\[x] x))
(f 10) ; works
; this is an impure function
-(let! g! (\![x] (println! x)))
+(let g! (\![x] (println! x)))
(g! "foo") ; works
; this is a pure function that tries to call an impure function
-(let! h (\[x] (g! x)))
+(let h (\[x] (g! x)))
(h "bar")
; error: cannot call impure function in pure context