Returns a lazy sequence of all descendants of location loc, in
depth-first order, left-to-right, starting with loc.
(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)))))
Comments top
No comments for descendants. Log in to add a comment.