InsertBefore in DList of structs
r-const-dev
r.const.dev at gmail.com
Tue Mar 5 09:06:13 UTC 2019
On Tuesday, 5 March 2019 at 08:39:56 UTC, drug wrote:
> On 05.03.2019 2:01, r-const-dev wrote:
>> [...]
> dataPoints is an aggregate type variable, not a range and slice
> operator opSlice/[] returns a range of this aggregate type. I
> have no appropriate links unfortunately but these can be useful
> https://dlang.org/phobos/std_container_dlist.html#.DList.opSlice - this operator returns a range
> https://dlang.org/phobos/std_container_dlist.html#.DList.Range
> - this is
> range that allows to iterate over DList elements
> http://ddili.org/ders/d.en/ranges.html - intro to ranges
>> [...]
> `find` returns a range that starts from the key
> `until` returns a range of all elements before the key
> https://run.dlang.io/is/1kpOUx
>
> [...]
Thank you for clarifications, it makes sense to me now.
More information about the Digitalmars-d-learn
mailing list