-- in.cue --
out: {
    for x in ["A", "B"] {
        top: "\(x)1": true
        top: "\(x)2": true
    }
}
view: {
    for k, _ in out.top {
        (k): k
    }
}
-- out/doc-v3 --
[]
[out]
[out top]
[out top A1]
[out top A2]
[out top B1]
[out top B2]
[view]
[view A1]
[view A2]
[view B1]
[view B2]
-- out/value-v3 --
== Simplified
{
	out: {
		top: {
			A1: true
			A2: true
			B1: true
			B2: true
		}
	}
	view: {
		A1: "A1"
		A2: "A2"
		B1: "B1"
		B2: "B2"
	}
}
== Raw
{
	out: {
		top: {
			A1: true
			A2: true
			B1: true
			B2: true
		}
	}
	view: {
		A1: "A1"
		A2: "A2"
		B1: "B1"
		B2: "B2"
	}
}
== Final
{
	out: {
		top: {
			A1: true
			A2: true
			B1: true
			B2: true
		}
	}
	view: {
		A1: "A1"
		A2: "A2"
		B1: "B1"
		B2: "B2"
	}
}
== All
{
	out: {
		top: {
			A1: true
			A2: true
			B1: true
			B2: true
		}
	}
	view: {
		A1: "A1"
		A2: "A2"
		B1: "B1"
		B2: "B2"
	}
}
== Eval
{
	out: {
		top: {
			A1: true
			A2: true
			B1: true
			B2: true
		}
	}
	view: {
		A1: "A1"
		A2: "A2"
		B1: "B1"
		B2: "B2"
	}
}
-- out/definition-v3 --
out: {
	for x in ["A", "B"] {
		top: {
			{
				"\(x)1": true
			}
			{
				"\(x)2": true
			}
		}
	}
}
view: {
	for k, _ in out.top {
		(k): k
	}
}
-- out/definition-v3-noshare --
out: {
	for x in ["A", "B"] {
		top: {
			{
				"\(x)1": true
			}
			{
				"\(x)2": true
			}
		}
	}
}
view: {
	for k, _ in out.top {
		(k): k
	}
}
