On Mon, 1 Mar 2004, Flavio S. Glock wrote: > How about this API (almost the same as Date::Set's): > > my $start_set = > $spanset->iterate( > sub { $_[0]->start } > ); > my $end_set = > $spanset->iterate( > sub { $_[0]->end } > ); > > note: $_[0] is a DateTime::Span.
Looks good. I think it'd be good to change DateTime::Set so that it's iterate() method _returned_ a set instead of modifying the set the method is called on, though. Otherwise we'd have two methods with the same name that did different things. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/