blob: df81d842f0388b63ebc490f94feb2524214a0e97 [file] [log] [blame]
-- in.cue --
import "list"
issue563: {
#MyDef: {
name: string
...
}
_all: [
_a,
_b,
]
_a: [...#MyDef] & [
{ name: "a" },
{ name: "b" },
{ name: "c" },
]
_b: [...#MyDef] & [
{ name: "1" },
{ name: "2" },
{ name: "3" },
]
output: [...#MyDef] & list.FlattenN(_all, 1)
}
-- out/list --
issue563: {
#MyDef: {
name: string
}
output: [{
name: "a"
}, {
name: "b"
}, {
name: "c"
}, {
name: "1"
}, {
name: "2"
}, {
name: "3"
}]
}