Questions tagged [clojure.walk]

In Clojure, it traverses form, an arbitrary data structure. inner and outer are functions. Applies inner to each element of form, building up a data structure of the same type, then applies outer to the result. Recognizes all Clojure data structures. Consumes seqs as with doall.

In Clojure, it traverses form, an arbitrary data structure. inner and outer are functions. Applies inner to each element of form, building up a data structure of the same type, then applies outer to the result. Recognizes all Clojure data structures. Consumes seqs as with doall.

Vars and Functions

  • keywordize-keys

  • macroexpand-all

  • postwalk

  • postwalk-demo

  • postwalk-replace

  • prewalk

  • prewalk-demo

  • prewalk-replace

  • stringify-keys

  • walk

Clojure Documentation

1 questions
0
votes
1 answer

Why does destructuring work for walk but not postwalk in Clojure?

I can walk the top-level of the following map using walk in Clojure: (use 'clojure.walk) (walk (fn [[k v]] (println (type k) k v)) identity {:a 1 :b {:c 3}}) Result: clojure.lang.Keyword :b {:c 3} clojure.lang.Keyword :a 1 {} (This works in a very…
hawkeye
  • 34,745
  • 30
  • 150
  • 304