On Tuesday, 16 July 2013 at 19:37:14 UTC, Gary Willoughby wrote:


If however you remove the .byKey() call and use .keys instead, it works!


With byKey, you are iterating over a range of original key values, meaning that attempting to remove any of them will result in bad bahavior. With .keys, you are iterating over a copied array of the keys, hence it's safe to remove them from the aa.

Reply via email to