Liking cljdoc? Tell your friends :D

onyx.static.path-seq


appclj/s

Internal Helper

Internal Helper
sourceraw docstring

path-seqclj/s

(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})
sourceraw docstring

PathSeqclj/s≠protocol

path-seq*clj/s

(path-seq* form path)

Helper for path-seq

Helper for path-seq
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close