Returns a subsequence containing all but the last element of the sequence.
- Xcode 8.0+
- Swift Standard Library
A subsequence leaving off the last element of the sequence.
The sequence must be finite.
If the sequence has no elements, the result is an empty subsequence.
Complexity: O(n), where n is the length of the sequence.