Luke Palmer wrote:

 LP>     my $foos = 'foo' ~ any(0..9) ~ any(0..9);

Actually $foos will be a junction.  You could use C<states> to get
each state out of the junction in an array.

    my @foos = states $foos;
Luke's right on target (as usual :-). Just one slight niggle. I suspect
C<states> may be a method only, so that would be either:

      my @foos = states $foos:;

or:

      my @foos = $foos.states;

Though, I suppose we might argue that C<states> is as fundamental to Perl 6
as C<grep> or C<sort>, and so ought to have a built-in as well. Hmmmmmmm.

Damian

Reply via email to