StepperHasParStream

scala.collection.convert.StreamExtensions.StepperHasParStream
implicit class StepperHasParStream[A](stepper: Stepper[A] & EfficientSplit)

Attributes

Source
StreamExtensions.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def asJavaParStream[S <: BaseStream[_, _], St <: Stepper[_]](implicit s: StreamShape[A, S, St], st: StepperShape[A, St]): S

Creates a parallel Java Stream for this stepper. If the stepper yields primitive values, a corresponding specialized Stream is returned (e.g., `IntStream`).

Creates a parallel Java Stream for this stepper. If the stepper yields 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

St

the type of Stepper used to traverse the 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; also used to unbox an AnyStepper with EfficientSplit to a specialized stepper when needed

Attributes

Returns

a parallel Java Stream of type S containing the elements yielded by this stepper

Source
StreamExtensions.scala