_toScala

trait _toScala[A]
class java.lang.Object
trait scala.Matchable
class Any
trait _use
object Stream

Def

inline def iterator: scala.collection.Iterator[A]

Iterator view

Iterator view

Wraps current stream as scala.collection.Iterator

Source
_toScala.scala
inline def toArray(using t: scala.reflect.ClassTag[A], s: Specialized[A]): s.Array

Convert to Array

Convert to Array

Returns stream elements as Array

 val a : Array[Int] =  (1 <> 10).stream.toArray
Source
_toScala.scala
inline def toList: scala.collection.immutable.List[A]

Convert to List

Convert to List

Returns stream elements as scala.collection.immutable.List

Source
_toScala.scala
inline def toMap[KEY, VALUE]: scala.collection.immutable.Map[KEY, VALUE]

Convert to scala.Map

Convert to scala.Map

Note. This operation is only available for streams holding tuples, like (KEY,VALUE)

Converts a stream of tuples to scala.Map

Source
_toScala.scala
inline def toMapBy[B](f: A => B): scala.collection.immutable.Map[B, A]

Convert to scala.Map

Convert to scala.Map

Converts stream to scala.Map, where key is created with provided function

Source
_toScala.scala
inline def toProduct: scala.Product

Convert to Product

Convert to Product

Returns stream elements as scala.Product

Source
_toScala.scala
inline def toSeq: scala.collection.immutable.IndexedSeq[A]

Convert to Seq

Convert to Seq

Returns stream elements as scala.collection.immutable.IndexedSeq

Source
_toScala.scala
inline def toVector: scala.collection.immutable.Vector[A]

Convert to Vector

Convert to Vector

Returns stream elements as scala.collection.immutable.Vector

Source
_toScala.scala