isPalindrome

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

Return Value

Type: bool

If range is a palindrome larger than minLength.

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