summaryrefslogtreecommitdiff
path: root/tests/clos2.bth
blob: 9e1fe24ab0c4f425cb3b24319936d43baad15886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(defn (k1 x)
	(fn () x))
(defn (k2 x)
	(let (v x)
		(fn () v)))
(def a1 (k1 100))
(def a2 (k2 200))
(def b1 (k1 "hello 1"))
(def b2 (k2 "hello 2"))
(say (a1))
(say (a2))
(say (b1))
(say (b2))
(say (a1))
(say (a2))