Palindrome detection: Difference between revisions

Content deleted Content added
Aartaka (talk | contribs)
→‎{{header|ed}}: More reliable and even-length-friendly palindrome detection.
INGY (talk | contribs)
Add YAMLScript sample
Line 6,337: Line 6,337:
yes
yes
</pre>
</pre>

=={{header|YAMLScript}}==
<syntaxhighlight lang="yaml">
!yamlscript/v0

defn main(n):
say: "$n is $when(
(str(n) != str(n).reverse())
'not '
)a palindrome."
</syntaxhighlight>


=={{header|Yorick}}==
=={{header|Yorick}}==