Function rustplot::data_parser::vec_keep_where [] [src]

pub fn vec_keep_where<T: Clone>(vec1: &Vec<T>, index_vec: &Vec<usize>) -> Vec<T>

Returns a copy of the provided vector only keeping elements specified by a list of indexes.

vec1 can be any vector implementing the Clone Trait, which will have specified elements kept.

index_vec is a list of integers specifying the elements that should be kept.

This function is designed for use with num_pred() and reg_match().