1.3.0 permalink Arrow_down_16x16

seq-zip

clojure.zip

  • (seq-zip root)
Returns a zipper for nested sequences, given a root sequence

1 Example top

  • user=> (require '[clojure.zip :as zip])
    nil
    user=> (def zz (zip/seq-zip '(a b (c d e) (f (g h) i) j)))
    #'user/zz
    user=> zz
    [(a b (c d e) (f (g h) i) j) nil]
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/zip.clj:35 top

(defn seq-zip
  "Returns a zipper for nested sequences, given a root sequence"
  {:added "1.0"}
  [root]
    (zipper seq?
            identity
            (fn [node children] (with-meta children (meta node)))
            root))
Vars in clojure.zip/seq-zip:
Used in 0 other vars

Comments top

No comments for seq-zip. Log in to add a comment.