"Jeremy Howard" writes:-
> Yes, I like it too, but the problem is that $end may not be reached:
>
> @weird = (0..5: ^0 mod 2);
>
> is an infinite loop under this proposal. That's not necessarily a dead-end,
> but it seems pretty dangerous.
Like for (;;) ? Or 1:11:-1 !
> The $num_steps pro
Robin Williams wrote:
> "Jeremy Howard" writes:-
>
> > The first version of this
> > RFC had a
> >
> > @start..$end:&gen
> >
> > but it just seems too dangerous, so I removed it. I'm still willing to
be
> > convinced though...
>
> as well as @start..&gen:$num_steps ? Yes, I'd agree you'd have
[EMAIL PROTECTED] wrote:
> Jeremy Howard wrote:
>
> >
> > C<;> is particularly useful for creating slices of multidimensional
arrays:
> >
> > my int @array = ([1,2,3],
> >[4,5,6],
> >[7,8,9]);
> > @col2 = @array[(0..2); 1]; # @array[[0,1],[1,1],[2,1