Martin DeMello
1/30/2008 6:09:00 AM
On Jan 29, 2008 10:24 PM, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> Hi,
>
> In message "Re: neat idea from arc"
> on Wed, 30 Jan 2008 07:07:31 +0900, "Martin DeMello" <martindemello@gmail.com> writes:
>
> |So we can write, for instance
> |
> |ints = input.select Integer
>
> We can do it by using #grep, e.g.
>
> ints = input.select Integer
I was thinking of this as a replacement for (and generalisation of)
grep, since it would extend to other methods like #reject and
#partition too
martin