RosettaCodeData/Task/Palindrome-detection/YAMLScript/palindrome-detection.ys

6 lines
104 B
Text
Raw Permalink Normal View History

2025-02-27 18:35:13 -05:00
!YS-v0
2024-10-16 18:07:41 -07:00
defn main(n=31337):
not =: when((n:S != n:S:reverse) ' not')
say: "$n is$not a palindrome."