Returns a Boolean value indicating whether the initial elements of the sequence are equivalent to the elements in another sequence, using the given predicate as the equivalence test.
- macOS 10.14+
- Xcode 10.0+
- Create ML
A sequence to compare to this sequence.
A predicate that returns
trueif its two arguments are equivalent; otherwise,
true if the initial elements of the sequence are equivalent to the elements of
possible has no elements, the return value is
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