Returns a Boolean value indicating whether the initial elements of the sequence are the same as the elements in another sequence.
- Xcode 8.3+
- Swift Standard Library
A sequence to compare to this sequence.
true if the initial elements of the sequence are the same as the elements of
possible has no elements, the return value is
This example tests whether one countable range begins with the elements of another countable range.
Passing a sequence with no elements or an empty collection as
possible always results in