--- On Mon, 30/6/08, Ovid <[EMAIL PROTECTED]> wrote: > --- 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.
I just noticed you included 'reverse' in that list of methods. I thought junctions were inherently unordered, thus making reverse kind of useless (which leads me even more to believe that I've misunderstood the question). 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