implement Result.mapBoth and Result.map2 builtins

This commit is contained in:
Luke Boswell 2024-08-14 13:16:24 +10:00
parent 2dee5aea94
commit 7aebee8c94
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
3 changed files with 75 additions and 1 deletions

View file

@ -1556,6 +1556,8 @@ define_builtins! {
5 RESULT_WITH_DEFAULT: "withDefault"
6 RESULT_TRY: "try"
7 RESULT_IS_OK: "isOk"
8 RESULT_MAP_BOTH: "mapBoth"
9 RESULT_MAP_TWO: "map2"
}
8 DICT: "Dict" => {
0 DICT_DICT: "Dict" exposed_type=true // the Dict.Dict type alias