mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
dict walk
This commit is contained in:
parent
39c4353554
commit
1256327caa
12 changed files with 307 additions and 3 deletions
|
@ -612,5 +612,8 @@ pub fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[bool] {
|
|||
DictGetUnsafe => arena.alloc_slice_copy(&[borrowed, borrowed]),
|
||||
DictKeys | DictValues => arena.alloc_slice_copy(&[borrowed]),
|
||||
DictUnion | DictDifference | DictIntersection => arena.alloc_slice_copy(&[owned, borrowed]),
|
||||
|
||||
// borrow function argument so we don't have to worry about RC of the closure
|
||||
DictWalk => arena.alloc_slice_copy(&[owned, borrowed, owned]),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue