Write a generic function repeat (n:int) (f:'T -> 'T) that composes a function f with itself n times. That is, repeat 3 f should give the same function as f >> f >> f.
repeat (n:int) (f:'T -> 'T)
f
n
repeat 3 f
f >> f >> f
Log in to submit your work and track progress.