flix

0.81.0

MonadZero

trait MonadZero[m: Type -> Type] with Monad[m]Source

Trait for types that are monads with a zero element.

Instances

Primitives
Vector
Non-primitives
Chain, List, Option

Signatures

def empty(): m[t] with MonadZero[m]§ Source

Returns the zero element of the monad.