Given a sequence of as
, combine them using the monoid and return the total.
Given a sequence of as
, combine them using the monoid and return the total.
Given a sequence of as
, combine them using the semigroup and return the total.
Given a sequence of as
, combine them using the semigroup and return the total.
If the sequence is empty, returns None. Otherwise, returns Some(total).
Return a
combined with itself n
times.
Return the identity element for this monoid.
Return the identity element for this monoid.
Return the inverse of a
.
Return the inverse of a
.
Tests if a
is the identity.
Tests if a
is the identity.
Combine a
with the inverse of b
.
Combine a
with the inverse of b
.