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.