Creates a sequential Java Stream for this collection. If the collection contains primitive values, a corresponding specialized Stream is returned (e.g., `IntStream`).
Creates a sequential Java Stream for this collection. If the collection contains primitive values, a corresponding specialized Stream is returned (e.g., `IntStream`).
Type parameters
S
the type of Java Stream to create, determined by the element type A via the implicit StreamShape
St
the type of Stepper used to traverse the collection's elements
Value parameters
s
implicit evidence connecting element type A to the appropriate Java Stream and Stepper types
st
implicit evidence selecting the appropriate Stepper shape for element type A
Attributes
Returns
a sequential Java Stream of type S containing the elements of this collection