mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Merge pull request #4224 from roc-lang/is-zero-lowlevel
Implement Num.isZero as a low-level
This commit is contained in:
commit
7752ecc895
2 changed files with 32 additions and 1 deletions
|
@ -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.
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue