This member function finds the value in an array, and removes the value, and changes the original array by default, unless ReturnCopy is true.
a=1..5;
a.removeByVal(3)
a
gives
1 2 4 5
remove
clean