RosettaCodeData/Task/Test-a-function/PicoLisp/test-a-function.l
2023-07-01 13:44:08 -04:00

5 lines
128 B
Text

(de palindrome? (S)
(= (setq S (chop S)) (reverse S)) )
(test T (palindrome? "racecar"))
(test NIL (palindrome? "ferrari"))