RosettaCodeData/Task/Palindrome-detection/YAMLScript/palindrome-detection.ys
2025-02-27 18:35:13 -05:00

5 lines
104 B
Text

!YS-v0
defn main(n=31337):
not =: when((n:S != n:S:reverse) ' not')
say: "$n is$not a palindrome."