1.3.0 permalink Arrow_down_16x16
  • (left loc)
Returns the loc of the left sibling of the node at this loc, or nil

0 Examples top

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:166 top

(defn left
  "Returns the loc of the left sibling of the node at this loc, or nil"
  {:added "1.0"}
  [loc]
    (let [[node {l :l r :r :as path}] loc]
      (when (and path (seq l))
        (with-meta [(peek l) (assoc path :l (pop l) :r (cons node r))] (meta loc)))))
Vars in clojure.zip/left:
Used in 0 other vars

Comments top

No comments for left. Log in to add a comment.