aboutsummaryrefslogtreecommitdiff
path: root/clojurescript/tests/t03.cljs
blob: 3937cfa74fe546cd7fb0b9c6593c701360d6a774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(ns net.n01se)

(def x 5)
(def y 10)

(defn bind-test []
  (when (= x 2)
    (set! y 90))
  (binding [x (dec x) y (inc y)]
    (when (pos? x)
      (bind-test)))
  (prn x y))

(bind-test)