How can I modify my function so that it will take a list of ordered pairs, and return just the pairs whose first value is greater than or equal to a given minimum and less than or equal to a given maximum value?
This is the initial code:
function2[list_, max_] := Select[list, # <= max &]
I know what to do for the order pairs. I just don't know how to use multiple conditions with Select.
LessEqual(e.g.a <= b <= c), but in general you can just useAndfor multiple conditions (e.g.cond1 && cond2 && ...) – Feb 08 '17 at 01:30