mir: How to change iterator?

9il ilyayaroshenko at gmail.com
Sun Apr 19 02:57:42 UTC 2020


On Sunday, 19 April 2020 at 02:56:30 UTC, 9il wrote:
> On Friday, 17 April 2020 at 08:40:36 UTC, WebFreak001 wrote:
>> On Tuesday, 14 April 2020 at 20:24:05 UTC, jmh530 wrote:
>>> [...]
>>
>> Use std.algorithm:equal for range compare with approxEqual for 
>> your comparator:
>>
>> assert(equal!approxEqual(y, [2.5, 2.5].sliced(2)));
>
> or mir.algorithm.iteration: each that can work with nd-ranges.

EDIT:

  or mir.algorithm.iteration: equal that can work with nd-ranges.



More information about the Digitalmars-d-learn mailing list