mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
implement Num.compare
This commit is contained in:
parent
4c995b12a6
commit
1b42831973
8 changed files with 225 additions and 2 deletions
|
@ -522,7 +522,9 @@ pub fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[bool] {
|
|||
ListWalkRight => arena.alloc_slice_copy(&[borrowed, irrelevant, owned]),
|
||||
|
||||
Eq | NotEq | And | Or | NumAdd | NumSub | NumMul | NumGt | NumGte | NumLt | NumLte
|
||||
| NumDivUnchecked | NumRemUnchecked => arena.alloc_slice_copy(&[irrelevant, irrelevant]),
|
||||
| NumCompare | NumDivUnchecked | NumRemUnchecked => {
|
||||
arena.alloc_slice_copy(&[irrelevant, irrelevant])
|
||||
}
|
||||
|
||||
NumAbs | NumNeg | NumSin | NumCos | NumSqrtUnchecked | NumRound | NumToFloat | Not => {
|
||||
arena.alloc_slice_copy(&[irrelevant])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue