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