so I am trying to write my own function to compose a function n times in Haskell.
so for example, the input
compose (+1) 3
would return f(x) = x+3;
Now my attempt is as follows, but is actually quite naive and currently doesn't work.
compose f 0 = (*1)
compose f n = (compose f n-1).a