how do I implement opSlice for retro range?

Jack jckj33 at gmail.com
Fri May 14 04:00:51 UTC 2021


sorry, in this code i mean b must be [5, 4]

>
> ```d
>     auto arr = [1, 2, 3, 4, 5];
>     auto a = new A!int(arr);
>     auto b = a.retro[0 .. 2]; //5,4
> ```





More information about the Digitalmars-d-learn mailing list