flix

0.79.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, DelayList, List, Option

Signatures

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

Returns the zero element of the monad.