mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-02 05:48:17 +00:00
add List.releaseExcessCapacity builtin
This commit is contained in:
parent
40b50b0091
commit
1319ba4844
13 changed files with 177 additions and 3 deletions
|
|
@ -35,6 +35,7 @@ pub enum LowLevel {
|
|||
ListLen,
|
||||
ListWithCapacity,
|
||||
ListReserve,
|
||||
ListReleaseExcessCapacity,
|
||||
ListAppendUnsafe,
|
||||
ListGetUnsafe,
|
||||
ListReplaceUnsafe,
|
||||
|
|
@ -262,6 +263,7 @@ map_symbol_to_lowlevel! {
|
|||
ListGetCapacity <= LIST_CAPACITY,
|
||||
ListWithCapacity <= LIST_WITH_CAPACITY,
|
||||
ListReserve <= LIST_RESERVE,
|
||||
ListReleaseExcessCapacity <= LIST_RELEASE_EXCESS_CAPACITY,
|
||||
ListIsUnique <= LIST_IS_UNIQUE,
|
||||
ListAppendUnsafe <= LIST_APPEND_UNSAFE,
|
||||
ListPrepend <= LIST_PREPEND,
|
||||
|
|
|
|||
|
|
@ -1410,6 +1410,7 @@ define_builtins! {
|
|||
78 LIST_WALK_FROM: "walkFrom"
|
||||
79 LIST_WALK_FROM_UNTIL: "walkFromUntil"
|
||||
80 LIST_ITER_HELP: "iterHelp"
|
||||
81 LIST_RELEASE_EXCESS_CAPACITY: "releaseExcessCapacity"
|
||||
}
|
||||
7 RESULT: "Result" => {
|
||||
0 RESULT_RESULT: "Result" exposed_type=true // the Result.Result type alias
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue