split(separator:maxSplits:omittingEmptySubsequences:)
Returns the longest possible subsequences of the collection, in order, around elements equal to the given separator.
Declaration
func split<C>(separator: C, maxSplits: Int = .max, omittingEmptySubsequences: Bool = true) -> [Self.SubSequence] where C : Collection, Self.Element == C.ElementParameters
- separator:
The element to be split upon.
Return Value
A collection of subsequences, split from this collection’s elements.