logo CodeStepByStep logo

RemoveRange

Language/Type: VB List collections

Write a function named RemoveRange that accepts a List of integers and two integer values min and max as parameters and removes all elements values in the range min through max (inclusive). For example, if a List named list stores {7, 9, 4, 2, 7, 7, 5, 3, 5, 1, 7, 8, 6, 7}, the call of RemoveRange(list, 5, 7) should change the list to store {9, 4, 2, 3, 1, 8}.

Function: Write a VB function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.