develooper Front page | perl.perl6.language | Postings from June 2008

Should C<grep> and C<reverse> work in C<Any> ?

Thread Next
From:
Patrick R. Michaud
Date:
June 29, 2008 14:23
Subject:
Should C<grep> and C<reverse> work in C<Any> ?
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?

Pm

Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About