Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Monoid

🌌Monoid

Monoid -- parent feature for monoids

A monoid is an abstraction for a type with an associative operation and
an identity element. Examples are (integers/infix +/0), (float/infix *,1),
(string/concat/""), etc.

identity element

§eq(a T, b T)
 => 
bool
:
Object

§infix ==(a T, b T)
 => 
bool
:
Object

equality operation

§infix ∙(a T, b T)
 => 
T
:
Object

associative operation

§op(a T, b T)
 => 
T
:
Object

alternative names for infix operators