for (k in lst) { ... } // key
for (v, in lst) { ... } // value - trailing comma
for (v,k in lst) { ...} // value, key
And/Or using some symbol to indicate an iterator:
for ([k,v] in @lst) {...} // with destructuring
//@ = sugar for the method call to return the iterator.
let it = @lst;
How much leeway is there for adding new keywords?
--
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

