mirror of
https://github.com/kanaka/mal.git
synced 2024-10-26 14:22:25 +03:00
Add outer tests to step3_env.mal
This commit is contained in:
parent
86da00cc55
commit
6f58a92605
@ -32,6 +32,16 @@ x
|
||||
(let* (p (+ 2 3) q (+ 2 p)) (+ p q))
|
||||
;=>12
|
||||
|
||||
;; Testing outer environment
|
||||
(def! a 4)
|
||||
;=>4
|
||||
(let* (q 9) q)
|
||||
;=>9
|
||||
(let* (q 9) a)
|
||||
;=>4
|
||||
(let* (z 2) (let* (q 9) a))
|
||||
;=>4
|
||||
|
||||
;;
|
||||
;; -------- Optional Functionality --------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user