Returns a Boolean value indicating whether this sequence and another sequence contain equivalent elements in the same order, using the given predicate as the equivalence test.
- iOS 7.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 9.3+
A sequence to compare to this sequence.
A predicate that returns
trueif its two arguments are equivalent; otherwise,
true if this sequence and
other contain equivalent items, using
are as the equivalence test; otherwise,
At least one of the sequences must be finite.
The predicate must be a equivalence relation over the elements. That is, for any elements
c, the following conditions must hold:
Complexity: O(m), where m is the lesser of the length of the sequence and the length of