📜  ruby includethis or that - Ruby 代码示例
📅  最后修改于: 2022-03-11 15:04:49.309000             🧑  作者: Mango
代码示例1
values = ["val1", "val2", "val3", "val4"].to_set
myarray.any? { |x| values.include?(x) }