[lang-ref] ( named_tuple ) ( swift )
@Test func namedTuple() {
// (x: 1, y: 2)
let t = (x: 1, y: 2)
#expect(t.x == 1)
#expect(t.y == 2)
#expect(t.0 == 1)
#expect(t.1 == 2)
}
@Test func namedTuple() {
// (x: 1, y: 2)
let t = (x: 1, y: 2)
#expect(t.x == 1)
#expect(t.y == 2)
#expect(t.0 == 1)
#expect(t.1 == 2)
}