optimized immutable containers

w0rp devw0rp at gmail.com
Wed Jul 3 00:21:55 PDT 2013


I suppose you could implement an efficiently copied immutable 
singly linked list like this very easily. I think that's a basic 
functional programming idea, new list with head + list. Making 
the nodes garbage collected would save on memory usage.


More information about the Digitalmars-d mailing list