OddFilterIterator and EvenFilterIterator are checked in as of revision 12. You can now do this:
// grab the second & third even numbers from 1 .. 10 ... 4 & 6
$i = new LimitIterator(new EvenFilterIterator(xrange(1, 10)), 1, 2);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1916684
Originator: YES
OddFilterIterator and EvenFilterIterator are checked in as of revision 12. You can now do this:
// grab the second & third even numbers from 1 .. 10 ... 4 & 6
$i = new LimitIterator(new EvenFilterIterator(xrange(1, 10)), 1, 2);
Logged In: YES
user_id=1916684
Originator: YES
Added NumericFilterIterator, which is an iterator that filters as an is_numeric() call.