3 lines
89 B
Haskell
3 lines
89 B
Haskell
|
isPalindrome :: (Eq a) => [a] -> Bool
|
||
|
isPalindrome = (==) <$> foldl (flip (:)) [] <*> id
|