# DO NOT EDIT; generated by go run testdata/gen.go # raw: true -- in.cue -- {a: [1, 2], b: {for k, v in a if v > 1 {"\(k)": v}}} -- out/def -- a: [1, 2] b: { "1": 2 } -- out/export -- a: [1, 2] b: { "1": 2 } -- out/yaml -- a: - 1 - 2 b: "1": 2 -- out/json -- {"a":[1,2],"b":{"1":2}} -- out/compile -- --- in.cue { { a: [ 1, 2, ] b: { for k, v in 〈1;a〉 if (〈0;v〉 > 1) { "\(〈1;k〉)": 〈1;v〉 } } } } -- out/eval/stats -- Leaks: 0 Freed: 6 Reused: 3 Allocs: 3 Retain: 0 Unifications: 6 Conjuncts: 9 Disjuncts: 6 -- out/eval -- (struct){ a: (#list){ 0: (int){ 1 } 1: (int){ 2 } } b: (struct){ "1": (int){ 2 } } }