@@ -7,13 +7,14 @@ Builtin := [].{
77 }
88
99 List := [ProvidedByCompiler ].{
10- len : List (_elem ) -> U64
11- is_empty : List (_elem ) -> Bool
10+ len : List (_item ) -> U64
11+ is_empty : List (_item ) -> Bool
12+ concat : List (item), List (item) -> List (item)
1213
13- first : List (elem ) -> Try (elem , [ListWasEmpty ])
14+ first : List (item ) -> Try (item , [ListWasEmpty ])
1415 first = |list| List . get (list , 0 )
1516
16- get : List (elem ), U64 -> Try (elem , [ListWasEmpty ])
17+ get : List (item ), U64 -> Try (item , [ListWasEmpty ])
1718 get = |list, index| if index < List . len (list ) {
1819 Try . Ok (list_get_unsafe (list , index))
1920 } else {
@@ -25,9 +26,6 @@ Builtin := [].{
2526
2627 keep_if : List (a), (a -> Bool ) -> List (a)
2728 keep_if = |_ , _ | []
28-
29- concat : List (a), List (a) -> List (a)
30- concat = |_ , _ | []
3129 }
3230
3331 Bool := [True , False ].{
@@ -83,10 +81,10 @@ Builtin := [].{
8381
8482 Dict := [EmptyDict ].{}
8583
86- Set (elem ) := [].{
87- is_empty : Set (elem ) -> Bool
84+ Set (item ) := [].{
85+ is_empty : Set (item ) -> Bool
8886
89- is_eq : Set (elem ), Set (elem ) -> Bool
87+ is_eq : Set (item ), Set (item ) -> Bool
9088 is_eq = |_a , _b | Bool . False
9189 }
9290
@@ -342,4 +340,4 @@ Builtin := [].{
342340
343341# Private top-level function for unsafe list access
344342# This is a low-level operation that gets replaced by the compiler
345- list_get_unsafe : List (elem ), U64 -> elem
343+ list_get_unsafe : List (item ), U64 -> item
0 commit comments