RosettaCodeData/Task/Palindrome-detection/Pluto/palindrome-detection.pluto
2025-08-11 18:05:26 -07:00

7 lines
153 B
Text

function is_palindrome(s)
return s == s:reverse()
end
print(is_palindrome('rotor'))
print(is_palindrome('racecar'))
print(is_palindrome('rosetta'))