Stream

object Stream extends _build with _use
trait _use
trait _toTuple
trait _toScala
trait _toJava
trait _toString
trait _read
trait _process
trait _print
trait _metadata
trait _evaluate
trait _build
trait _zip
trait _peek
trait _parallel
trait _order
trait _mutate
trait _map
trait _group
trait _filter
trait _drop
trait _take
trait _extend
class Z_StreamDefaults
class java.lang.Object
trait scala.Matchable
class Any

Member

trait _Build[A] extends _extend[A] with _filter[A] with _group[A] with _map[A] with _mutate[A] with _order[A] with _parallel[A] with _peek[A] with _zip[A]

Build Stream Interface

Build methods extend stream pipeline creating functionality which will add, remove or modify stream elements, when they finally start moving throught the pipeline.

Once a single stream build method is invoked, the original stream object must not be used, all further processing must be done with the newly created stream.

Source
__.scala
trait _Build[A] extends _extend[A] with _filter[A] with _group[A] with _map[A] with _mutate[A] with _order[A] with _parallel[A] with _peek[A] with _zip[A]

Build Stream Interface

Build methods extend stream pipeline creating functionality which will add, remove or modify stream elements, when they finally start moving throught the pipeline.

Once a single stream build method is invoked, the original stream object must not be used, all further processing must be done with the newly created stream.

Source
__.scala
trait _Use[A] extends _aggregate[A] with _calculate[A] with _evaluate[A] with _metadata[A] with _print[A] with _process[A] with _read[A] with _transform[A]

Stream Consumption Interface

Once a single stream consumption method is invoked, the stream object should generally be discarded. The only exceptions are methods defined in _metadata and _read interfaces.

Source
__.scala
trait _Use[A] extends _aggregate[A] with _calculate[A] with _evaluate[A] with _metadata[A] with _print[A] with _process[A] with _read[A] with _transform[A]

Stream Consumption Interface

Once a single stream consumption method is invoked, the stream object should generally be discarded. The only exceptions are methods defined in _metadata and _read interfaces.

Source
__.scala
object Custom

Object Custom holds advanced stream features, average users should not be concerned about.

Source
__.scala
abstract class Flow[A] extends _build[A] with _use[A] with _metadata[A]

Stream Flow

Flow is similar to stream, but without sequence specific methods.

Elements of Flow can be processed either in parallel or sequentially.

Flow is usually created from stream with ".parallel" method.

  val flow: Stream.Flow[Int] = (1 <> 10).stream.parallel
Source
__.scala
abstract class Flow[A] extends _build[A] with _use[A] with _metadata[A]

Stream Flow

Flow is similar to stream, but without sequence specific methods.

Elements of Flow can be processed either in parallel or sequentially.

Flow is usually created from stream with ".parallel" method.

  val flow: Stream.Flow[Int] = (1 <> 10).stream.parallel
Source
__.scala
trait Preview[A] extends Stream[A] with Able.Empty

Preview is an extension of stream with preview capabilities

It allows to pre-load and inspect elements before they are read from the stream

val s  : Stream[Int]         = 1 <> 10
val ps : Stream.Preview[Int] = s.enablePreview

ps.preview.tp            // Prints  1

ps.previewStream(5).tp       // Prints  Stream(1, 2, 3, 4, 5)

ps.previewStream(3).tp       // Prints  Stream(1, 2, 3)

(ps.previewSize > 12).tp // Prints false

ps.tp                    // Prints Stream(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
ps.tp                    // Prints Stream()
Source
__.scala
trait Preview[A] extends Stream[A] with Able.Empty

Preview is an extension of stream with preview capabilities

It allows to pre-load and inspect elements before they are read from the stream

val s  : Stream[Int]         = 1 <> 10
val ps : Stream.Preview[Int] = s.enablePreview

ps.preview.tp            // Prints  1

ps.previewStream(5).tp       // Prints  Stream(1, 2, 3, 4, 5)

ps.previewStream(3).tp       // Prints  Stream(1, 2, 3)

(ps.previewSize > 12).tp // Prints false

ps.tp                    // Prints Stream(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
ps.tp                    // Prints Stream()
Source
__.scala

Def

inline def apply[A](v: A): Stream[A]

Single element consructor

Single element consructor

Source
__.scala
inline def apply[A](v1: A, v2: A): Stream[A]

Double element consructor

Double element consructor

Source
__.scala
def apply[A](v1: A, v2: A, v3: A, vs: A*): Stream[A]

Multi element consructor

Multi element consructor

Source
__.scala
inline def fromEnumeration[A](v: java.util.Enumeration[A]): Stream[A]

Constructor from Enumeration

Constructor from Enumeration

Source
__.scala
inline def fromIterable[A](v: java.lang.Iterable[A]): Stream[A]

Explicit constructor from Iterable

Explicit constructor from Iterable

Note: There is also global implicit conversion from Iterable to Stream

Source
__.scala
inline def fromIterableOnce[A](v: scala.collection.IterableOnce[A]): Stream[A]

Explicit constructor from IterableOnce

Explicit constructor from IterableOnce

Note: There is also global implicit conversion from IterableOnce to Stream

Source
__.scala
inline def fromIterator[A](v: java.util.Iterator[A]): Stream[A]

Explicit constructor from Iterator

Explicit constructor from Iterator

Note: There is also global implicit conversion from Iterator to Stream

Source
__.scala
inline def fromProduct(v: scala.Product): Stream[(String, Any)]

Constructor from Product

Constructor from Product

Source
__.scala
inline def fromSpliterator[A](v: java.util.Spliterator[A]): Stream[A]

Constructor from Spliterator

Constructor from Spliterator

Source
__.scala
def unapplySeq[A](v: Stream[A]): scala.Option[scala.collection.immutable.Seq[A]]
Source
__.scala
@targetName("getVoid")
inline def void[A]: Stream[A]

Get void instance

Get void instance

Source
__.scala

Implicit

implicit inline def implicitFromAbleStream[A](v: Able.Stream[A]): Stream[A]
Source
__.scala
implicit inline def implicitFromArray[A](v: Array[A]): Stream[A]
Inherited from
z_StreamDefaults
Source
__.scala
implicit inline def implicitFromIterable[A](v: java.lang.Iterable[A]): Stream[A]
Inherited from
z_StreamDefaults
Source
__.scala
implicit inline def implicitFromIterableOnce[A](v: scala.collection.IterableOnce[A]): Stream[A]
Inherited from
z_StreamDefaults
Source
__.scala
implicit inline def implicitFromIterator[A](v: java.util.Iterator[A]): Stream[A]
Inherited from
z_StreamDefaults
Source
__.scala
implicit inline def implicitFromOpt[A](v: Opt[A]): Stream[A]
Inherited from
z_StreamDefaults
Source
__.scala
implicit inline def implicitFromRange[A](v: Range[A])(using Able.Sequence[
Inherited from
z_StreamDefaults
Source
__.scala
implicit inline def implicitFromResult[A](v: Result[A]): Stream[A]
Inherited from
z_StreamDefaults
Source
__.scala
implicit inline def implicitFromTupleOfFew[A](v: (A, A) | (A, A, A) | (A, A, A, A) | (A, A, A, A, A)): Stream[A]
Inherited from
z_StreamDefaults
Source
__.scala
implicit inline def implicitRequest[A](v: VOID): Stream[A]
Source
__.scala
implicit inline def implicitRequest[A](v: EMPTY): Stream[A] & Able.Size
Source
__.scala