DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUBY
ruby includethis or that
values = ["val1", "val2", "val3", "val4"].to_set myarray.any? { |x| values.include?(x) }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#ruby
#includethis
ADD COMMENT
Topic
COMMENT
Name
8+7 =
Submit