99-haskell-problems/Problems 01-10/problem_05.hs

2 lines
56 B
Haskell

myReverse :: [a] -> [a]
myReverse = foldl (flip (:)) []