kevin-lee/just-fp

Add nonZero to Monoid

Closed this issue · 0 comments

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