frankshearar/zipr — Issue #20: Clean up Zipper.fold
Author: frankshearar
Created: 2011-12-19 22:44:05+00:00
State: open

Right now you can say
z = some_structure.zipper
z.fold(init, PreOrderTraversal.new(y)) { |sum, node|
}

where y is a zipper on a completely different structure! Not ideal! (But neither is pumping in a class name.)