Slices, appending to arbitrary position

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Dec 30 11:01:26 PST 2013


On Mon, Dec 30, 2013 at 06:40:24PM +0000, Dfr wrote:
> 
> Thank you for replies, i think here i can use assoc array, but
> sometimes it is not suitable because it is not preserve order.

Maybe you can use std.container.RedBlackTree instead? That will preserve
order (but at the cost of asymptotically slower lookups / insertions).


T

-- 
People who are more than casually interested in computers should have at
least some idea of what the underlying hardware is like. Otherwise the
programs they write will be pretty weird. -- D. Knuth


More information about the Digitalmars-d-learn mailing list