flix

0.54.0

SemiGroup

trait SemiGroup[a: Type]Source

A trait for types that form a semigroup.

Instances

instance SemiGroup[Chain[a]]Source
instance SemiGroup[DelayList[a]]Source
instance SemiGroup[PrecedenceGraph]Source
instance SemiGroup[Identity[a]] with SemiGroup[a]Source
instance SemiGroup[List[a]]Source
instance SemiGroup[Map[k, v]] with Order[k], SemiGroup[v]Source
instance SemiGroup[MultiMap[k, v]] with Order[k], Order[v]Source
instance SemiGroup[Nec[a]]Source
instance SemiGroup[Nel[a]]Source
instance SemiGroup[Option[a]] with SemiGroup[a]Source
instance SemiGroup[Unit]Source
instance SemiGroup[Int8]Source
instance SemiGroup[Int16]Source
instance SemiGroup[Int32]Source
instance SemiGroup[Int64]Source
instance SemiGroup[BigInt]Source
instance SemiGroup[Float32]Source
instance SemiGroup[Float64]Source
instance SemiGroup[BigDecimal]Source
instance SemiGroup[String]Source
instance SemiGroup[(a1, a2)] with SemiGroup[a1], SemiGroup[a2]Source
instance SemiGroup[(a1, a2, a3)] with SemiGroup[a1], SemiGroup[a2], SemiGroup[a3]Source
instance SemiGroup[(a1, a2, a3, a4)] with SemiGroup[a1], SemiGroup[a2], SemiGroup[a3], SemiGroup[a4]Source
instance SemiGroup[(a1, a2, a3, a4, a5)] with SemiGroup[a1], SemiGroup[a2], SemiGroup[a3], SemiGroup[a4], SemiGroup[a5]Source
instance SemiGroup[(a1, a2, a3, a4, a5, a6)] with SemiGroup[a1], SemiGroup[a2], SemiGroup[a3], SemiGroup[a4], SemiGroup[a5], SemiGroup[a6]Source
instance SemiGroup[(a1, a2, a3, a4, a5, a6, a7)] with SemiGroup[a1], SemiGroup[a2], SemiGroup[a3], SemiGroup[a4], SemiGroup[a5], SemiGroup[a6], SemiGroup[a7]Source
instance SemiGroup[(a1, a2, a3, a4, a5, a6, a7, a8)] with SemiGroup[a1], SemiGroup[a2], SemiGroup[a3], SemiGroup[a4], SemiGroup[a5], SemiGroup[a6], SemiGroup[a7], SemiGroup[a8]Source
instance SemiGroup[(a1, a2, a3, a4, a5, a6, a7, a8, a9)] with SemiGroup[a1], SemiGroup[a2], SemiGroup[a3], SemiGroup[a4], SemiGroup[a5], SemiGroup[a6], SemiGroup[a7], SemiGroup[a8], SemiGroup[a9]Source
instance SemiGroup[(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)] with SemiGroup[a1], SemiGroup[a2], SemiGroup[a3], SemiGroup[a4], SemiGroup[a5], SemiGroup[a6], SemiGroup[a7], SemiGroup[a8], SemiGroup[a9], SemiGroup[a10]Source
instance SemiGroup[Any]Source
instance SemiGroup[All]Source
instance SemiGroup[Set[a]] with Order[a]Source
instance SemiGroup[Validation[e, t]] with SemiGroup[t]Source
instance SemiGroup[Vector[a]]Source

Signatures

def combine(x: a, y: a): a with SemiGroup[a] Source

An associative binary operation on a.

Trait Definitions

def combineN(x: a, n: Int32): a with SemiGroup[a] Source

Returns x combined with itself n times.