Ruby Mailing List Mirror
Is there an "in" operator in ruby?
ruby-talk
7rans
(7rans)
19 April 2006 19:07
1
@test=[2,4,6,8]
(
@test
& (1..10).to_a).each { |x| ... }
T.
Related topics
Topic
Replies
Views
Activity
Is there an "in" operator in ruby?
ruby-talk
0
108
19 April 2006
Is there an "in" operator in ruby?
ruby-talk
12
116
19 April 2006
"num in [1,2,3,4]" in a cool way?
ruby-talk
16
108
22 August 2008
Will #in? be in ruby2? (was Re: Finding shared elements between to arrays.)
ruby-talk
15
141
12 October 2007
Set operation
ruby-talk
5
122
27 November 2002