Merge pull request #4224 from roc-lang/is-zero-lowlevel

Implement Num.isZero as a low-level
This commit is contained in:
Ayaz 2022-10-07 15:03:55 -05:00 committed by GitHub
commit 7752ecc895
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 1 deletions

View file

@ -575,7 +575,6 @@ isGte : Num a, Num a -> Bool
## Returns `Bool.true` if the number is `0`, and `Bool.false` otherwise.
isZero : Num a -> Bool
isZero = \x -> x == 0
## A number is even if dividing it by 2 gives a remainder of 0.
##