(path-seq form)
Returns a sequence of paths into a form, and the elements found at those paths. Each item in the sequence is a map with :path and :form keys. Paths are built based on collection type: lists by position, maps by key, and sets by value, e.g.
(path-seq [:a [:b :c] {:d :e} #{:f}])
({:path [0], :form :a} {:path [1 0], :form :b} {:path [1 1], :form :c} {:path [2 :d], :form :e} {:path [3 :f], :form :f})
Returns a sequence of paths into a form, and the elements found at those paths. Each item in the sequence is a map with :path and :form keys. Paths are built based on collection type: lists by position, maps by key, and sets by value, e.g. (path-seq [:a [:b :c] {:d :e} #{:f}]) ({:path [0], :form :a} {:path [1 0], :form :b} {:path [1 1], :form :c} {:path [2 :d], :form :e} {:path [3 :f], :form :f})
(path-seq* form path)
Helper for path-seq
Helper for path-seq
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close