Question: Problem 2 (5 points) Write an ML function, called minus: int list ? int list ? int list, that takes two non-decreasing integer lists and
Problem 2 (5 points) Write an ML function, called minus: int list ? int list ? int list, that takes two non-decreasing integer lists and produces a non-decreasing integer list obtained by removing the elements from the first input list which are also found in the second input list. For example, minus( [1,1,1,2,2], [1,1,2,3] ) = [1,2] minus( [1,1,2,3],[1,1,1,2,2] ) = [3]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
