mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
feat(List): add sum builtin
This commit is contained in:
parent
a55f30e512
commit
1c8bb74268
12 changed files with 197 additions and 38 deletions
|
@ -536,6 +536,7 @@ pub fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[bool] {
|
|||
ListKeepIf => arena.alloc_slice_copy(&[owned, irrelevant]),
|
||||
ListContains => arena.alloc_slice_copy(&[borrowed, irrelevant]),
|
||||
ListWalkRight => arena.alloc_slice_copy(&[borrowed, irrelevant, owned]),
|
||||
ListSum => arena.alloc_slice_copy(&[borrowed]),
|
||||
|
||||
Eq | NotEq | And | Or | NumAdd | NumAddWrap | NumAddChecked | NumSub | NumMul | NumGt
|
||||
| NumGte | NumLt | NumLte | NumCompare | NumDivUnchecked | NumRemUnchecked | NumPow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue