Recent improvements

bearophile bearophileHUGS at lycos.com
Wed Feb 19 06:01:17 PST 2014


Bienlein:

> Would this compile:
>
> immutable s = ["red", "blue"].sum
>
> If not, it would be interesting to understand how that works :-)

This could work, but join() is (or should be) asymptotically more 
efficient:

reduce!q{a ~ b}("", ["red", "blue"])

Bye,
bearophile


More information about the Digitalmars-d mailing list