If this works: contains("hello", "el");then this should work: contains([1, 2, 3, 4, 5], [2, 3]);Special cases are pure evil. There's nothing special about strings in this case.
I don't disagree, but naming and intuitive semantics should match up. In this case it does not. "contains" signifies set membership.
hasSequence/findSequence would be more appropriate