I'm using Ruby 2.4. How do I scan every element of an array for a condition except one index in the array? I tried this
arr.except(2).any? {|str| str.eql?("b")}
But got the following error:
NoMethodError: undefined method `except' for ["a", "b", "c"]:Array
but evidently what I read online about "except" is greatly exaggerated.