[CLJ-1097] node-seq for clojure.zip Created: 29/Oct/12 Updated: 03/Sep/13
|Affects Version/s:||Release 1.5|
|Patch:||Code and Test|
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.