Question: [Ocaml Language] Please solve this question by completing (*TODO*) in this code: (* problem 6*) let drop : 'a list -> int -> 'a list

[Ocaml Language]

Please solve this question by completing (*TODO*) in this code:

(* problem 6*) let drop : 'a list -> int -> 'a list = fun l n -> (*TODO*) 

[Ocaml Language] Please solve this question by completing (*TODO*) in this code:

Problem 6 (10pts) Write a function drop: drop'a list -> int -> 'a list that takes a list and an integer n to take all but the first n elements of l. For example, [1:2:3:4;5] 2 [1,2] 3 = [] ["C", "Java". [3; 5] drop drop drop 4; "OCanl"] 2 = ["OCanl"]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!