State the type of and define a function twice, which takes a function from integers to integers and an input integer, and whose output is the function applied to the twice. For instance, with the double a function and 7 as input, the result is 28. What is the most general type of function you have defined?