Forum: Ruby Is there an "in" operator in ruby ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
45196398e9685000d195ec626d477f0e?d=identicon&s=25 TRANS (Guest)
on 2006-04-19 21:09
(Received via mailing list)
@test=[2,4,6,8]

(@test & (1..10).to_a).each { |x| ... }

T.
This topic is locked and can not be replied to.