Palindrome detection: Difference between revisions

→‎{{header|Uiua}}: Added an extra credit solution
(→‎{{header|Uiua}}: Added an extra credit solution)
 
Line 6,013:
Does not ignore spaces.
<syntaxhighlight lang="uiua">≍⇌."tacocat"</syntaxhighlight>
===Extra Credit===
Ignores whitespace, converts A-Z to lowercase, only checks a-z, includes tests.
<syntaxhighlight lang="uiua">IsPal ← ≍⇌.+×32<@a.▽:⟜∊:/⊂+⊙¤"Aa"⇡26
IsPal "A man, a plan, a canal: Panama!"
</syntaxhighlight>
 
=={{header|UNIX Shell}}==
158

edits