Write a generic function twice f x that takes a function f and a value x and returns f(f(x)). What is the type of twice?
twice f x
f
x
f(f(x))
twice
Log in to submit your work and track progress.