ansible/dhall/Prelude/Natural/isZero.dhall

11 lines
222 B
Text
Raw Normal View History

2024-11-26 05:55:44 +00:00
--| Returns `True` if a number is `0` and returns `False` otherwise
let isZero
: Natural → Bool
= Natural/isZero
let example0 = assert : isZero 2 ≡ False
let example1 = assert : isZero 0 ≡ True
in isZero