# DO NOT EDIT; generated by go run testdata/gen.go | |
# | |
raw: true | |
-- in.cue -- | |
{a: [1, 2], b: [ for k, v in a {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 〈0;a〉 { | |
〈1;v〉 | |
}, | |
] | |
} | |
} | |
-- out/eval -- | |
(struct){ | |
a: (#list){ | |
0: (int){ 1 } | |
1: (int){ 2 } | |
} | |
b: (#list){ | |
0: (int){ 1 } | |
1: (int){ 2 } | |
} | |
} |