Monoid

org.specs2.fp.Monoid
See theMonoid companion trait
object Monoid

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Monoid.type

Members list

Value members

Concrete methods

def apply[F](using F: Monoid[F]): Monoid[F]
def instance[A](f: (A, => A) => A, z: A): Monoid[A]

Make an append and zero into an instance.

Make an append and zero into an instance.

Attributes

Givens

Givens

given intMonoid: Monoid[Int]
given listMonoid[A]: Monoid[List[A]]
given mapMonoid[K, V](using evidence$1: Monoid[V]): Monoid[Map[K, V]]
given seqMonoid[A]: Monoid[Seq[A]]
given streamMonoid[A]: Monoid[LazyList[A]]
given stringMonoid: Monoid[String]
given vectorMonoid[A]: Monoid[Vector[A]]