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