Question: IN SML PLEASE!!! 2. getInRange and count!nRange - 18% (a) getInRange - 69 Define a function getInRange which takes two integer values, vl and v2,

 IN SML PLEASE!!! 2. getInRange and count!nRange - 18% (a) getInRange

IN SML PLEASE!!!

2. getInRange and count!nRange - 18% (a) getInRange - 69 Define a function getInRange which takes two integer values, vl and v2, and a list L, and returns the values in L which are greater than vl and less than v2 (exclusive). Your function shouldn't need a recursion but should use a higher order function (map, fold, or filter). You may need to define additional helper function(s), which are also not recursive. The type of the getInRange function should be: int ->int-> int list-> int list Examples >getInRange 3 10 [1,2,3,4,5,6,7,8,9,10,11] 4,5,6,7,8,9 >getInRange -5 5 [-10,-5,0,5,10 t0] > getInRange 11 -2,2,3,4,5] [i

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!