RosettaCodeData/Task/Palindrome-detection/PascalABC.NET/palindrome-detection.pas

7 lines
144 B
ObjectPascal
Raw Permalink Normal View History

2024-07-13 15:19:22 -07:00
function IsPalindrome(s: string) := s = s[::-1];
begin
Println(IsPalindrome('arozaupalanalapuazora'));
Println(IsPalindrome('abcd'));
end.