IterableMonoid

com.phasmid.majabigwaduce.dd.DataDefinition.IterableMonoid
trait IterableMonoid[T] extends Monoid[Iterable[T]]

A trait that defines a monoid for iterable collections of type T.

Extends the Monoid trait, adding functionality for combining and initializing iterable collections. Provides a default implementation for the identity element (zero) and the associative binary operation (combine).

Type parameters

T

the type of elements within the iterable collection.

Attributes

Graph
Supertypes
trait Monoid[Iterable[T]]
trait Zero[Iterable[T]]
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def combine(x: Iterable[T], y: Iterable[T]): Iterable[T]

This is the "op" method of a Monoid, the one that associates any two instances of the monoid type.

This is the "op" method of a Monoid, the one that associates any two instances of the monoid type.

Value parameters

x

the left-hand operand

y

the right-hand operand

Attributes

Returns

the result of combining x and y

def zero: Iterable[T]

Method to create a zero/empty/nothing value of X

Method to create a zero/empty/nothing value of X

Attributes

Returns

an X which is zero (empty, etc.)