Returns a Boolean value indicating whether this sequence and another sequence contain the same elements in the same order.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
- Apple Crypto
A sequence to compare to this sequence.
true if this sequence and
other contain the same elements in the same order.
At least one of the sequences must be finite.
This example tests whether one countable range shares the same elements as another countable range and an array.
Complexity: O(m), where m is the lesser of the length of the sequence and the length of