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
|
-- in.cue --
a: [...int]
a: [1, 2, 3, 5]
a: [1, 2, 3, d]
b: a[3]
d: 5
c: [for x in [[1, 2]][0] {x + d}]
-- out/eval/stats --
Leaks: 4
Freed: 11
Reused: 8
Allocs: 7
Retain: 6
Unifications: 15
Conjuncts: 29
Disjuncts: 13
-- out/eval --
(struct){
a: (#list){
0: (int){ 1 }
1: (int){ 2 }
2: (int){ 3 }
3: (int){ 5 }
}
b: (int){ 5 }
d: (int){ 5 }
c: (#list){
0: (int){ 6 }
1: (int){ 7 }
}
}
-- out/compile --
--- in.cue
{
a: [
...int,
]
a: [
1,
2,
3,
5,
]
a: [
1,
2,
3,
〈1;d〉,
]
b: 〈0;a〉[3]
d: 5
c: [
for _, x in [
[
1,
2,
],
][0] {
(〈1;x〉 + 〈3;d〉)
},
]
}
|