diff options
Diffstat (limited to 'clojurescript/t03.cljs')
-rw-r--r-- | clojurescript/t03.cljs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clojurescript/t03.cljs b/clojurescript/t03.cljs new file mode 100644 index 00000000..3937cfa7 --- /dev/null +++ b/clojurescript/t03.cljs @@ -0,0 +1,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) |