Is there a library function available in Haskell to compose a function with itself n times?
For example I have this function:
func :: a ->
\n -> appEndo . foldMap Endo . replicate n