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

3 lines
56 B
Haskell
Raw Normal View History

2024-05-24 17:06:42 -05:00
myReverse :: [a] -> [a]
myReverse = foldl (flip (:)) []