Home

Search IconIcon to open search

Clojure functions

walk example:

1
2
3
4
5
6
;; from -> clojuredocs
user=> (def c 5) user=> (-> c (+ 3) (/ 2) (- 1)) 3
;; and if you are curious why
user=> (use 'clojure.walk)
user=> (macroexpand-all '(-> c (+ 3) (/ 2) (- 1)))
(- (/ (+ c 3) 2) 1)