Search
 
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
Name
8+7 =