Stream

object Stream
class Object
trait Matchable
class Any
Stream.type

Type members

Classlikes

final class StreamOps[A](val fa: Stream[A]) extends AnyVal
object coalgebras
object implicits

Value members

Concrete methods

def cons[A](fa: Stream[A])(a: A): Stream[A]
def empty[A]: Stream[A]
def flatMap[A, B](fa: Stream[A])(f: A => Stream[B]): Stream[B]
def foldLeft[A, B](fa: Stream[A])(z: B)(f: (B, A) => B): B
def forever[A](a: A): Stream[A]
def fromIterator[A](it0: => Iterator[A]): Stream[A]
def fromJavaIterator[A](it0: => Iterator[A]): Stream[A]
def fromList[A](l0: List[A]): Stream[A]
def map[A, B](fa: Stream[A])(f: A => B): Stream[B]
def pure[A](a: A): Stream[A]
def take[A](fa: Stream[A])(n: Int): Stream[A]
def toList[A](fa: Stream[A]): List[A]

Implicits

Inherited implicits

implicit val drosteMonadForStream: Monad[Stream]
Inherited from:
StreamInstances
implicit def drosteMonoidForStream[A]: Monoid[Stream[A]]
Inherited from:
StreamInstances