kevin-lee/just-fp

Add isZero to Monoid

Closed this issue · 0 comments

Task

Summary

Add isZero to Monoid

Project Details

Version: 1.3.0

Description

Add isZero to Monoid to check if the Monad is an identity element.

Monoid[List[Int]].isZero(List()) // true
Monoid[List[Int]].isZero(List(1, 2, 3)) // false