right

clojure.zip

  • (right loc)
Returns the loc of the right 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:149 top

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

Comments top

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