Has there ever been any discussion of creating a
RefsIterator type and the accompanying
refs(collection) which returns a
Ref to the values of a collection?
So you could write:
col=collect(1:1000) for r in refs(col) r=... r... .... end
You could of course do
refs(values(dict)) as well but you would want to limit this collections where modification to the values is valid. So no
refs(keys(::Dict)) but maybe
This seems like the easiest way to enable more generic in place modification via loops.