(def nested-vecs
[:foo [:bar :baz [:bork]]])
;; now let's make a zipper
(def z (zip/vector-zip nested-vecs))
;; "path" only returns the "down nodes" necessary to reach the destination.
;; Any other horizontal movement is not collected:
(-> z
zip/down ;; down1 [:foo [:bar :baz [:bork]]]
zip/right
zip/down ;; down2 [:bar :baz [:bork]]
zip/rightmost
zip/down ;; down3 [:bork]
zip/path)
;; [[:foo [:bar :baz [:bork]]]
;; [:bar :baz [:bork]]
;; [:bork]]