A type-erased iterator of
This iterator forwards its
next() method to an arbitrary underlying iterator having the same
Element type, hiding the specifics of the underlying
Creates an iterator that wraps a base iterator but whose type depends only on the base iterator’s element type.
Returns a subsequence containing all but the first element of the sequence.
Returns a subsequence containing all but the given number of initial elements.
Returns a subsequence containing all but the last element of the sequence.
Returns a subsequence containing all but the given number of final elements.
Returns a sequence of pairs (n, x), where n represents a consecutive integer starting at zero and x represents an element of the sequence.
Returns the elements of this sequence of sequences, concatenated.
Returns the maximum element in the sequence.
Returns the minimum element in the sequence.
Advances to the next element and returns it, or
nil if no next element exists.
Returns a subsequence, up to the specified maximum length, containing the initial elements of the sequence.
Returns an array containing the elements of this sequence in reverse order.
Returns a subsequence, up to the given maximum length, containing the final elements of the sequence.
A type-erased wrapper over any collection with indices that support forward traversal.
A wrapper over an underlying index that hides the specific underlying type.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software