dao icon indicating copy to clipboard operation
dao copied to clipboard

Enhancement: for-in loop tuple assignment

Open dumblob opened this issue 10 years ago • 1 comments

It would be quite convenient to allow assignment to a tuple in a for-in loop like this:

m={0->5, 1->6, 2->7}
for ((a,b) in m) io.writeln(a, b)

dumblob avatar Aug 17 '15 14:08 dumblob

It would also be nice if the value yielded in for-in in case of a map would be a named tuple.

Night-walker avatar Aug 17 '15 14:08 Night-walker