p

Stream

package Stream

There are many ways to create Stream besides make constructors

val sf: ~[Float] = ~.*(1, 2, 3)      // Vararg constructor '*'
sf lp                                // Prints: ~(1.0, 2.0, 3.0)

val si: ~[Int] = 4 ~+ 5 + 6 + 7 + 8  // Create with '~+' operator and append
si lp                                // Prints: ~(4, 5, 6, 7, 8)

val sd = ~[Double] + 12 + 10L + 1D   // Void stream and append
sd lp                                // Prints: ~(12.0, 10.0, 1.0)

val sc: ~[Char] = 'A' <> 'D'         // From Range, which can implicitly convert to Stream
sc lp                                // Prints: ~(A, B, C, D)

val v1 = ~[Int]                      // Void stream with explicit type
v1 lp                                // Prints: ~()

val v2: ~[Int] = \/                  // Void stream with context type
v2 lp                                // Prints: ~()
Ordering
  1. Alphabetic
Inherited
  1. Stream
  2. scala.AnyRef
  3. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Constructor

  1. def make[A](v: Idx[A]): Stream[A]
    Definition Classes
    Stream
  2. def *[A](v: A*): Stream[A]

    Varagr Constructor

    Varagr Constructor

    Creates stream with specified values

    Definition Classes
    Stream

Custom Functions

  1. type Consumer[-A] = Consumer[A]

    Function alias

    Function alias

    Alias to type and object Stream.Interface.Function.Consumer

    Definition Classes
    Stream
  2. type Filter[-A] = Filter[A]

    Function alias

    Function alias

    Alias to type and object Stream.Interface.Function.Filter

    Definition Classes
    Stream
  3. type Folding[A] = Folding[A]

    Function alias

    Function alias

    Alias to type and object Stream.Interface.Function.Folding

    Definition Classes
    Stream
  4. type Mapping[-A, +B] = Mapping[A, B]

    Function alias

    Function alias

    Alias to type and object Stream.Interface.Function.Mapping

    Definition Classes
    Stream

Method

  1. def make(v: scala.Range): ~[Int]
    Definition Classes
    Stream
  2. def make[A](v: GenTraversableOnce[A])(implicit arg0: Ilk[A]): ~[A]
    Definition Classes
    Stream
  3. def make[A](v: Array[A]): ~[A]
    Definition Classes
    Stream
  4. def make[A](v: Iterator[A])(implicit arg0: Ilk[A]): ~[A]
    Definition Classes
    Stream
  5. def make[A](v: Iterable[A])(implicit arg0: Ilk[A]): ~[A]
    Definition Classes
    Stream

Implicit Constructor

  1. implicit def zzMake[A](v: \/): Stream[A] with Any.Able.Stream[A]

    Get void

    Get void

    Converts Unit to void instance of this type

    // Generic examples
    
    val c : Any.Collection[String] = \/
    
    val p: Percent       = \/
    
    val a: Refs[Int]    = \/
    Definition Classes
    Typed
Linear Supertypes
AnyRef, Any
Source: package.scala