1.2.0 permalink Arrow_down_16x16
  • (descendants loc)
Returns a lazy sequence of all descendants of location loc, in
depth-first order, left-to-right, starting with loc.

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/contrib/zip_filter.clj:60 top

(defn descendants
  "Returns a lazy sequence of all descendants of location loc, in
  depth-first order, left-to-right, starting with loc."
  [loc] (lazy-seq (cons (auto false loc) (mapcat descendants (children loc)))))
Vars in clojure.contrib.zip-filter/descendants: cons defn descendants lazy-seq mapcat
Used in 0 other vars

Comments top

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