I don't like slices in D

bearophile bearophileHUGS at lycos.com
Fri Oct 18 07:35:44 PDT 2013


Dicebot:

> You can do it via slice element-wise assignment:
>
> arr[index..$-1][] = arr[index+1..$][]

Overlapping slices error. You have to copy with Phobos...

Bye,
bearophile


More information about the Digitalmars-d mailing list