StreamMonoid

@deprecated("Use cats.kernel.instances.lazyList", "2.0.0-RC2") class StreamMonoid[A] extends Monoid[Stream[A]]
Deprecated
trait Monoid[Stream[A]]
trait Semigroup[Stream[A]]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def combine(x: Stream[A], y: Stream[A]): Stream[A]
override def combineAll(xs: IterableOnce[Stream[A]]): Stream[A]
Definition Classes
override def combineN(x: Stream[A], n: Int): Stream[A]
Definition Classes
def empty: Stream[A]

Inherited methods

override def combineAllOption(as: IterableOnce[Stream[A]]): Option[Stream[A]]
Definition Classes
Inherited from
Monoid
def intercalate(middle: Stream[A]): Semigroup[Stream[A]]

Between each pair of elements insert middle This name matches the term used in Foldable and Reducible and a similar Haskell function.

Between each pair of elements insert middle This name matches the term used in Foldable and Reducible and a similar Haskell function.

Inherited from
Semigroup
def isEmpty(a: Stream[A])(ev: Eq[Stream[A]]): Boolean

Tests if a is the identity.

Tests if a is the identity.

Example:

scala> import cats.kernel.instances.string._

scala> Monoid[String].isEmpty("")
res0: Boolean = true

scala> Monoid[String].isEmpty("something")
res1: Boolean = false
Inherited from
Monoid
override def reverse: Monoid[Stream[A]]
Definition Classes
Inherited from
Monoid