Does D have "structural sharing" of immutable collections?

Chris Dew cmsdew at gmail.com
Wed May 23 06:50:33 PDT 2012


Just some beginner questions...

Does D have "structural sharing" of its immutable collections?

i.e. Can I make a copy of an immutable Map or List collection 
with an extra (or mutated) member, and will the returned (new) 
collection share most of it's structure with the earlier 
collection.

Thanks,

Chris.


More information about the Digitalmars-d mailing list