ClojureDocs

Nav

Namespaces

lefts

clojure.zip

Available since 1.0
  • (lefts loc)
Returns a seq of the left siblings of this loc
1 Example
(def vz (vector-zip [1 2 3 4 5]))

;; root
;;  |________
;;  | | | | |
;;  1 2[3]4 5

;;go down and then right twice, what's to the left of me now?
(-> vz down right right lefts)
=>(1 2)

;;equivalent:
(-> vz down right right rights)
=>(4 5)

See Also

Returns a seq of the right siblings of this loc

Added by juan.facorro
0 Notes
No notes for lefts