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:](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f458f844e27_59166f458f7d794f.jpg)
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
Get step-by-step solutions from verified subject matter experts
