equal

bool
equal
(
Range1
Range2
)
(
Range1 range1
,
Range2 range2
)

Return Value

Type: bool

true if the two given ranges are equal

Examples

enum a = [ 1, 2, 4, 3 ].staticArray;
static assert(!equal(a[], a[1..$]));
static assert(equal(a[], a[]));

// different types
enum b = [ 1.0, 2, 4, 3].staticArray;
static assert(!equal(a[], b[1..$]));
static assert(equal(a[], b[]));

Meta