IterableHasSeqStream

scala.collection.convert.StreamExtensions.IterableHasSeqStream
implicit class IterableHasSeqStream[A](cc: IterableOnce[A])

Attributes

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

Members list

Value members

Concrete methods

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

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

Source
StreamExtensions.scala