File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- def ( K? to V?) : (Type, Type) -> Type do:
1
+ def K? to V? : (Type, Type) -> Type =
2
2
Map of [(K, V)]
3
3
4
- def ( group pairs?) do:
4
+ def group pairs? =
5
5
match pairs with:
6
6
() => ()
7
7
x? :: y? :: xs? => (x, y) :: group xs
8
8
9
- def ( map pairs...?) do:
9
+ def map pairs...? =
10
10
Map of group pairs
11
11
12
- def ( m? find-key k?) do:
12
+ def m? find-key k? =
13
13
match m with:
14
14
(k, v?) :: xs? => v
15
15
e? :: xs? => xs find-key k
16
16
17
- def ( m? find k?) : (Any to Any, Any) -> Any do:
17
+ def m? find k? : (Any to Any, Any) -> Any =
18
18
match m with:
19
19
Map of xs? => xs find-key k
20
20
21
- def ( m? with entry?) : (Any to Any, (Any, Any)) -> Any do:
21
+ def m? with entry? : (Any to Any, (Any, Any)) -> Any =
22
22
match m with:
23
23
Map of xs? => Map of (entry :: xs)
You can’t perform that action at this time.
0 commit comments