1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
-- in.cue --
Len: len(*[1, 2, 3] | 0)
Close: close(*{} | 0)
And: and(*[1, 1] | int)
Or: or(*[1, 1] | int)
Div: div(*5 | string, 2)
Mod: mod(*5 | string, 2)
Quo: quo(*5 | string, 2)
Rem: rem(*5 | string, 2)
-- out/compile --
--- in.cue
{
Len: len((*[
1,
2,
3,
]|0))
Close: close((*{}|0))
And: and((*[
1,
1,
]|int))
Or: or((*[
1,
1,
]|int))
Div: div((*5|string), 2)
Mod: mod((*5|string), 2)
Quo: quo((*5|string), 2)
Rem: rem((*5|string), 2)
}
-- out/eval/stats --
Leaks: 0
Freed: 45
Reused: 40
Allocs: 5
Retain: 0
Unifications: 25
Conjuncts: 52
Disjuncts: 45
-- out/evalalpha --
(struct){
Len: (int){ 3 }
Close: (#struct){
}
And: (int){ 1 }
Or: (int){ 1 }
Div: (int){ 2 }
Mod: (int){ 1 }
Quo: (int){ 2 }
Rem: (int){ 1 }
}
-- diff/-out/evalalpha<==>+out/eval --
diff old new
--- old
+++ new
@@ -1,6 +1,6 @@
(struct){
Len: (int){ 3 }
- Close: (struct){
+ Close: (#struct){
}
And: (int){ 1 }
Or: (int){ 1 }
-- out/eval --
(struct){
Len: (int){ 3 }
Close: (struct){
}
And: (int){ 1 }
Or: (int){ 1 }
Div: (int){ 2 }
Mod: (int){ 1 }
Quo: (int){ 2 }
Rem: (int){ 1 }
}
|