Dave Rolsky wrote:
> Why not just offer an explicit to_set method for
> DateTime::SpanSet, that "does the right thing"
> (whatever that may be ;)
>
# 'the right thing'
my $start_set = $spanset->to_set;
# but then:
my $end_set =
$spanset->clone->iterate(
sub {
Reinhold May wrote:
>
> Flavio, I haven't tried that yet, but from my
> understanding, these code excerpts don't solve
> my problem. I guess, your question was
> directed into this possiblity:
>
> My problem refers to SpanSets derived from sets
> of recurrences, which I can't imagine t
On Tue, 2 Mar 2004 [EMAIL PROTECTED] wrote:
> > 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
> 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
On Tue, 2 Mar 2004, Reinhold May wrote:
> > Please don't encourage people to dig about in the internals.
> > We want to be able to change them freely, but if you start
> > publicizing "solutions" that use the internals, that then
> > becomes part of the public api.
>
> Dave, I see your point here,
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: $_