Thinking about the difference between fixed and 'dynamic' arrays.

Basile.B b2.temp at gmx.com
Wed Nov 30 12:27:10 UTC 2022


On Wednesday, 30 November 2022 at 03:04:47 UTC, Basile B. wrote:
> Essentially slices are only useful to be consumed locally, 
> typically
>
> ```d
> while mySlice.length do
> {
>    slice = slice[1..$];
> }
> ```

sorry I cant force push, it was obviously meant to be written as

```d
while mySlice.length do
{
    mySlice = mySlice[1..$];
}
```




More information about the Digitalmars-d-learn mailing list