allEqualTo

bool
allEqualTo
(
R
E
)
if (
isInputRange!R &&
is(ElementType!R == E)
)

Return Value

Type: bool

true iff all elements in range are equal (or range is empty) to element.

Possible alternatives or aliases: allElementsEqualTo

Examples

assert([42, 42].allEqualTo(42));

Meta