Palindrome detection: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) |
(→{{header|Uiua}}: Added an extra credit solution) |
||
Line 6,013: | Line 6,013: | ||
Does not ignore spaces. |
Does not ignore spaces. |
||
<syntaxhighlight lang="uiua">≍⇌."tacocat"</syntaxhighlight> |
<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}}== |
=={{header|UNIX Shell}}== |