July 22, 2010
awishformore Wrote:

> You could then even go as far as not iduping, but instead casting it to a string to avoid unnecessary allocations.

In D2 you would use std.contracts.assumeUnique() for this.

http://digitalmars.com/d/2.0/phobos/std_contracts.html#assumeUnique