Question: in ocaml language Write a function n_times : ('a -> 'a) * int * 'a -> 'a such that n_times (f,n,v) applies f to v
in ocaml language
Write a function n_times : ('a -> 'a) * int * 'a -> 'a such that n_times (f,n,v) applies f to v n times. For example, n_times ( (fun x-> x+1), 50, 0) = 50 .If n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
