On Thursday, 20 February 2014 at 19:34:17 UTC, w0rp wrote:
I suppose the next step after that would be to support nested unpacking, but that would require a change in syntax so it would be much more complicated.
You mean this?
void main() {
import std.typecons : tuple;
import std.range : repeat;
foreach(k,v1, v2; tuple(1, tuple(2, 3)).repeat(4))
{}
}
Yeah, that works.
