Problem 3 [25 points] Write an SML function, called dropEver…
Problem 3 [25 points] Write an SML function, called dropEveryNth, that takes as input tuple consisting of a an modified version of the input list in which every ni’h element has been dropped (i.e., removed). For this problem, the list and an integer and returms first element of the list is in position 1 (not position 0). IMPORTANT. Recall that the mod operator gives the remainder resulting from integer division. E.g,3 mod2- 1 and 3 mod 3 0. 1 dropEveryNth (1,2,3,4,5,6,7],3) [1,2,4,5,71 2 dropEveryNth ([1,2,3,4,5,6,71,2)[1,3,5,71 3 dropEveryNth ([1,2,3,4,5,6,7,1)n
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
