mir: How to change iterator?

9il ilyayaroshenko at gmail.com
Sun Apr 19 02:56:30 UTC 2020


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.


More information about the Digitalmars-d-learn mailing list