3 lines
151 B
Haskell
3 lines
151 B
Haskell
is_palindrome_r x | length x <= 1 = True
|
|
| head x == last x = is_palindrome_r . tail. init $ x
|
|
| otherwise = False
|