我的数组是
arr = ["wow what", "what anice", "anice day.currently", "day.currently i", "i am", "am in", "in delhi", "delhi but", "but in", "in night", "night i", "i am", "am going", "going to", "to us"]
arr.each do |el|
if !el.match('in') && !el.match('is').blank?
fresh_arr << el
end
但是我有 110k 元素数组,它给了 8 秒时间,我可以用其他任何方式来做这件事吗
谢谢