diff options
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/test1.lang | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/example/test1.lang b/src/example/test1.lang index c5d797beb..8e740eabd 100644 --- a/src/example/test1.lang +++ b/src/example/test1.lang @@ -24,3 +24,15 @@ (def pi 3.14) pi + +(def (foo x) + (let [y (*' 2 x)] + (+' x y))) + +(foo 10) + +(def bar {#x 10 #y 20}) +bar +(get@ #x bar) +(set@ #z 30 bar) +(remove@ #y bar) |