pub fn remove_value<T: PartialEq>(vec: &mut Vec<T>, val: T) {
    match find_value(vec, val) {
        Some(index) => {
            vec.remove(index);
        }
        None => {} // do nothing
    }
}
/// removes a value from a vector (if there are several appearances, delete the first one)
removes a value from a vector (if there are several appearances, delete the first one)
removes a value from a vector ( if there are several appearances delete the first one )
pub fn remove_value<T: PartialEq>(vec: &mut Vec<T>, val: T) {
    match find_value(vec, val) {
        Some(index) => {
            vec.remove(index);
        }
        None => {} // do nothing
    }
}
pub fn remove_value < T : PartialEq > ( vec : & mut Vec < T > , val : T ) { match find_value ( vec , val ) { Some ( index ) => { vec . remove ( index ) ; } None => { } // do nothing } }
removes a value from a vector (if there are several appearances, delete the first one)
removes a value from a vector ( if there are several appearances delete the first one )
vec
&mut Vec<T>
val
T
vec
&mut Vec<T>
val
T