trait MonadZero[m: Type -> Type] with Monad[m]
A trait for Monads that have a zero element.
instance MonadZero[Chain]
instance MonadZero[DelayList]
instance MonadZero[List]
instance MonadZero[Option]
instance MonadZero[Vector]
def empty(): m[t] with MonadZero[m]
Returns the zero element of the monad.