Returns a subsequence by skipping elements while
true and returning the remaining elements.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
- Xcode 11.0+
- Core Media
A closure that takes an element of the sequence as its argument and returns
trueif the element should be skipped or
falseif it should be included. Once the predicate returns
falseit will not be called again.
Complexity: O(n), where n is the length of the collection.