mir: How to change iterator?

WebFreak001 d.forum at webfreak.org
Fri Apr 17 08:42:11 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)));

simplified:

assert(equal!approxEqual(y, [2.5, 2.5]));


More information about the Digitalmars-d-learn mailing list