View difference between Paste ID: T0zFQB85 and 3CxXTagJ
SHOW: | | - or go back to the newest paste.
1
A2)a)
2
3
mapList :: (Int -> Int) -> List -> List
4
mapList _ [] = []
5-
mapList f (x:xs) = f x : map f xs
5+
mapList f (x:xs) = f x : mapList f xs