Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

Many times it's easier to get to a zipper node via (first (filter pred ...)) instead of manually walking the tree via next/up/down. Other times it's easier to process certain nodes via filter & map instead of again, walking the tree. This patch provides a single function called node-seq that uses zip/next to generate a lazy-seq of nodes. Tests provide two examples.

1 Answer

0 votes
Reference: https://clojure.atlassian.net/browse/CLJ-1097 (reported by halgari)