At 3:36 PM -0700 9/18/06, Trey Harris wrote:
In a message dated Mon, 18 Sep 2006, Darren Duncan writes:
I suggest that it might be appropriate to rename the .grep list
operator to .where, so we can say, for example:
@filtered = @originals.where:{ .foo eq $bar };
Note that this can be written:
@filtered = any(@originals) ~~ { .foo eq $bar};
Trey
Either way, the name "grep" is inferior to various alternatives.
If we are keeping the "grep" syntax, it should be renamed to some
other, more descriptive word.
It could be "where" if appropriate, or "filter", or something else.
-- Darren Duncan