View difference between Paste ID: 3CxXTagJ and vWqZtpJ1
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