Upgrade to List.set_in_place when appropriate

This commit is contained in:
Richard Feldman 2020-03-07 12:43:03 -05:00
parent bca43a2564
commit db4ef45708
5 changed files with 63 additions and 17 deletions

View file

@ -606,12 +606,13 @@ define_builtins! {
2 LIST_ISEMPTY: "isEmpty"
3 LIST_GET: "get"
4 LIST_SET: "set"
5 LIST_PUSH: "push"
6 LIST_MAP: "map"
7 LIST_LENGTH: "length"
8 LIST_FOLDL: "foldl"
9 LIST_FOLDR: "foldr"
10 LIST_GET_UNSAFE: "getUnsafe" // TODO remove once we can code gen Result
5 LIST_SET_IN_PLACE: "set_in_place"
6 LIST_PUSH: "push"
7 LIST_MAP: "map"
8 LIST_LENGTH: "length"
9 LIST_FOLDL: "foldl"
10 LIST_FOLDR: "foldr"
11 LIST_GET_UNSAFE: "getUnsafe" // TODO remove once we can code gen Result
}
7 RESULT: "Result" => {
0 RESULT_RESULT: "Result" imported // the Result.Result type alias