Changes for clojure.walk/postwalk-replace

philos99 on Sat, 19 Apr 2014
(use 'clojure.walk)

(postwalk-replace {:a 1 :b 2} [:a :b])
;=> [1 2]

(postwalk-replace {:a 1 :b 2} [:a :b :c])
;=> [1 2 :c]

(postwalk-replace {:a 1 :b 2} [:a :b [:a :b] :c])
;=> [1 2 [1 2] :c]
philos99 on Sat, 19 Apr 2014
(use 'clojure.walk)

philos99 on Sat, 19 Apr 2014
(use 'clojure.walk)

(prewalk-replace {:a 1 :b 2} [:a :b])
;=> [1 2]

(prewalk-replace {:a 1 :b 2} [:a :b :c])
;=> [1 2 :c]

(prewalk-replace {:a 1 :b 2} [:a :b [:a :b] :c])
;=> [1 2 [1 2] :c]