Declared In

Note: You cannot use the break or continue statement to exit the
current call of the body closure or skip subsequent calls.
Note: Using the return statement in the body closure will only
exit from the current call to body, not any outer scope, and won't
skip subsequent calls.

Declaration

Declared In

Return true iff self precedes other in a lexicographical ("dictionary")
ordering, using isOrderedBefore as the comparison between elements.

Note: This method implements the mathematical notion of lexicographical
ordering, which has no connection to Unicode. If you are sorting strings
to present to the end-user, you should use String APIs that perform
localized comparison.

Declaration

Declared In

Return the result of repeatedly calling combine with an
accumulated value initialized to initial and each element of
self, in turn, i.e. return
combine(combine(...combine(combine(initial, self[0]),
self[1]),...self[count-2]), self[count-1]).

Declaration

Declared In

Returns the maximal SubSequences of self, in order, that
don't contain elements satisfying the predicate isSeparator.

maxSplit: The maximum number of SubSequences to
return, minus 1.
If maxSplit + 1SubSequences are returned, the last one is
a suffix of self containing the remaining elements.
The default value is Int.max.

allowEmptySubsequences: If true, an empty SubSequence
is produced in the result for each pair of consecutive elements
satisfying isSeparator.
The default value is false.

Declaration

Declared In

Conditionally Inherited Items

The initializers, methods, and properties listed below may be available on this type under certain conditions (such as methods that are available on Array when its elements are Equatable) or may not ever be available if that determination is beyond SwiftDoc.org's capabilities. Please open an issue on GitHub if you see something out of place!

Declaration

Declared In

Where Generator.Element : Comparable

Return true iff self precedes other in a lexicographical ("dictionary")
ordering, using "<" as the comparison between elements.

Note: This method implements the mathematical notion of lexicographical
ordering, which has no connection to Unicode. If you are sorting strings
to present to the end-user, you should use String APIs that perform
localized comparison.

Declaration

Declared In

Returns the maximal SubSequences of self, in order, around elements
equatable to separator.

maxSplit: The maximum number of SubSequences to
return, minus 1.
If maxSplit + 1SubSequences are returned, the last one is
a suffix of self containing the remaining elements.
The default value is Int.max.

allowEmptySubsequences: If true, an empty SubSequence
is produced in the result for each pair of consecutive elements
satisfying isSeparator.
The default value is false.