M
Modular11mo ago
benny

Will Mojo ever support multi variable tuple unpacking?

let a, b = StaticIntTuple[2](1, 2)
let a, b = StaticIntTuple[2](1, 2)
Will this code ever work?
1 Reply
sora
sora11mo ago
I don't see why not. I think it's most likely a current limitation. Notice that the following does work:
let a: T
let b: S
a, b = Tuple[T, S](t, s)
let a: T
let b: S
a, b = Tuple[T, S](t, s)
Want results from more Discord servers?
Add your server