Add nonZero to Monoid
Closed this issue · 0 comments
kevin-lee commented
Task
Summary
Add nonZero
to Monoid
Project Details
Version: 1.3.0
Description
Add nonZero
to Monoid
to check if the Monad
is not an identity element.
Monoid[List[Int]].nonZero(List()) // false
Monoid[List[Int]].nonZero(List(1, 2, 3)) // true