isPalindrome

bool
isPalindrome
(
R
)
(,
size_t lengthMin = 0
)
if (
isBidirectionalRange!(R)
)

Return Value

Type: bool

If range is a palindrome larger than lengthMin.

Examples

assert(`dallassallad`.isPalindrome);
assert(!`ab`.isPalindrome);
assert(`a`.isPalindrome);
assert(`åäå`.isPalindrome);
assert(`áá`.isPalindrome);
assert(`åäå`.isPalindrome);
assert(``.isPalindrome);
assert([1, 2, 2, 1].s[].isPalindrome);

Meta