Is there a library function available in Haskell to compose a function with itself n times?
For example I have this function:
func :: a ->
iterate (f .) id !! n
or
iterate (f .) f !! (n-1)
depending on if n == 0 is allowed.
n == 0