Move AoA->_rasterize to Vector->rasterize, with the following API changes:
commit52980519a91e75ffa563dbc16f40ac1e92bdc920
authorMark Glines <mark@glines.org>
Sun, 8 Jun 2008 13:51:41 +0000 (8 06:51 -0700)
committerMark Glines <mark@glines.org>
Sun, 8 Jun 2008 13:51:41 +0000 (8 06:51 -0700)
treec78504f877a0acb2039daec9b17fd2d451b5b7b0
parent731fd175a4c4fa6bfa9a3658bf3bdaef61d19f57
Move AoA->_rasterize to Vector->rasterize, with the following API changes:

* add mandatory min/max args.
* return undef to indicate loop end.

Fix up the callers to support the new API.

This function allows the caller to enumerate over every point in an arbitrary
N-dimensional space without recursion.  The space is specified by the min/max
arguments.  Rasterize is very useful for the "generic" storage classes.

It is also a good candidate for XS acceleration.  More on that later.
Changes
lib/Language/Befunge/Storage/Generic/AoA.pm
lib/Language/Befunge/Vector.pm
t/1-classes/vector.t