Showing with 1 addition and 0 deletions.
  1. +1 −0 std/algorithm/comparison.d
1 change: 1 addition & 0 deletions std/algorithm/comparison.d
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ template equal(alias pred = "a == b")
int[] a = [ 1, 2, 4, 3 ];
assert(!equal(a, a[1..$]));
assert(equal(a, a));
assert(equal!((a, b) => a == b)(a, a));

// different types
double[] b = [ 1.0, 2, 4, 3];
Expand Down