View difference between Paste ID: 3grPwVH3 and i112W3vU
SHOW: | | - or go back to the newest paste.
1
mapList :: (Int -> Int) -> List -> List
2
mapList _ [] = []
3
mapList f (x:xs) = f x : map f xs