Pea wrote:
> From: Devi Web Development [mailto:devi.webmaster / gmail.com] 
> # > compare:
> # >    a3 = a1.select { |e| e.in? a2}
> # >
> # I really don't like that proposal. It's not a property of e 
> # that it is in a2, its a property of a2 that it contains e.
> 
> pls enlighten my poor brain :(
> 
> i just want to ask if e is in a2. same way like i want to ask eg if e==2  ...  in fact, i find #in? so generic...
> 
> or maybe you want a keyword only like msbasic's 
> 
>     e in a2
> 
> ?
> 
> kind regards -botp
> 

Why don't you just define #in? in Object yourself, and then you can use
it anywhere in your code. That's something I really like about Ruby: if
I'm missing something from a core or library class, I can just drop it
in for my own use.

mortee