--- On Sun, 29/6/08, Patrick R. Michaud <[EMAIL PROTECTED]> wrote:

> Do C<grep> and C<reverse> act like the
> C<join> method, in that
> they work for C<Any> object and not just objects of
> type C<List>?
> 
> In other words,, should  C< $x.grep(...) >  work even
> if $x isn't normally a list type?

If I understand you correctly, I think you're asking if grep and map can be 
applied to junctions?  I would say yes.  We don't want to mutate junctions in 
place as this would break their parallelism, but I've found that I sometimes 
need to pass junctions around and build new junctions based on the values of 
old junctions.  grep and map would make that trivial.

If I've misunderstood, feel free to print this out and burn it :)

Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Reply via email to