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.

Reply via email to