stream

class Object
trait Matchable
class Any

Type members

Classlikes

object streamSyntax extends ToStreamOps

Value members

Inherited methods

final
def heads[A](as: Stream[A]): Stream[Stream[A]]

[as take 1, as take 2, ..., as]

[as take 1, as take 2, ..., as]

Inherited from
StreamFunctions
final
def interleave[A](s1: Stream[A], s2: Stream[A]): Stream[A]
Inherited from
StreamFunctions
final
def intersperse[A](as: Stream[A], a: A): Stream[A]

Intersperse the element a between each adjacent pair of elements in as

Intersperse the element a between each adjacent pair of elements in as

Inherited from
StreamFunctions
final
def tails[A](as: Stream[A]): Stream[Stream[A]]

[as, as.tail, as.tail.tail, ..., Stream(as.last)]

[as, as.tail, as.tail.tail, ..., Stream(as.last)]

Inherited from
StreamFunctions
final
def toZipper[A](as: Stream[A]): Maybe[Zipper[A]]
Inherited from
StreamFunctions
def unfold[A, B](seed: A)(f: A => Option[(B, A)]): Stream[B]
Inherited from
StreamFunctions
final
def unfoldForest[A, B](as: Stream[A])(f: A => (B, () => Stream[A])): Stream[Tree[B]]
Inherited from
StreamFunctions
final
def unfoldForestM[A, B, M[_] : Monad](as: Stream[A])(f: A => M[(B, Stream[A])]): M[Stream[Tree[B]]]
Inherited from
StreamFunctions
def unfoldm[A, B](seed: A)(f: A => Maybe[(B, A)]): Stream[B]
Inherited from
StreamFunctions
final
def zapp[A, B, C](a: Stream[A])(f: Stream[A => B => C]): Stream[B => C]
Inherited from
StreamFunctions
final
def zipperEnd[A](as: Stream[A]): Maybe[Zipper[A]]
Inherited from
StreamFunctions

Implicits

Inherited implicits

implicit
def streamEqual[A](implicit A0: Equal[A]): Equal[Stream[A]]
Inherited from
StreamInstances
implicit
val streamInstance: Traverse[Stream] & MonadPlus[Stream] & Alt[Stream] & BindRec[Stream] & Zip[Stream] & Unzip[Stream] & Align[Stream] & IsEmpty[Stream] & Cobind[Stream]
Inherited from
StreamInstances
implicit
def streamMonoid[A]: Monoid[Stream[A]]
Inherited from
StreamInstances
implicit
def streamOrder[A](implicit A0: Order[A]): Order[Stream[A]]
Inherited from
StreamInstances
implicit
def streamShow[A](implicit A0: Show[A]): Show[Stream[A]]
Inherited from
StreamInstances
implicit
val streamZipApplicative: Applicative[[α] =>> Stream[α] @@ Zip]

An alternative scalaz.Applicative instance for Stream, discriminated by the type tag scalaz.Tags.Zip, that zips streams together.

An alternative scalaz.Applicative instance for Stream, discriminated by the type tag scalaz.Tags.Zip, that zips streams together.

Example:

import scalaz.Tags.Zip
streamZipApplicative.apply2(Zip(Stream(1, 2)), Zip(Stream(3, 4)))(_ * _) // Stream(3, 8)
Inherited from
StreamInstances