anyone knows how to create a function (addOne'') which do a given function (addOne') n times over itself (addOne')? basically f(f(x)) n times
addOne :: Int -> Int
addOne x = x*2
addOne' :: [Int] -> [Int]
addOne' [] = []
addOne' (x:xs) = addOne x : addOne' xs
addOne'' :: Int -> [Int] -> [Int]
addOne'' ????
so I want to do function addOne' over itself n times. Thanks!