equal

Undocumented in source. Be warned that the author may not have intended to support it.
bool
equal
(
T
U
)
(
scope T a
,
scope U b
)
if (
!(
isInfinite!T &&
isInfinite!U
)
)

Examples

dynamic arrays

assert(!equal([0], [1]));
assert(!equal([1, 2   ].s[], [1, 2, 3].s[]));
assert(!equal([1, 2, 3].s[], [1, 2,  ].s[]));
assert( equal([1, 2, 3].s[], [1, 2, 3].s[]));

static arrays

assert(!equal([0].s, [1].s));
assert(!equal([1, 2   ].s, [1, 2, 3].s));
assert(!equal([1, 2, 3].s, [1, 2,  ].s));
assert( equal([1, 2, 3].s, [1, 2, 3].s));

Meta