[][src]Function frank::fetch_guard

pub fn fetch_guard<T: Clone>(vector: &Vec<T>, picks: &Vec<usize>) -> Vec<T>

vector.fetch(&my_borrowed_usize_list) will return a vector of your usized picks. Error tollerant and useful for user guided selective statistics, computation of quatriles and building custom scrolling levels out of 8 bit character bitmaps from selections that previously caused the most player deaths (maybe?) use one of two ways: genericvector.fetch(&vector_usize_index_picks) or from the function with fetch_guard(&genericvector, &your_usize_picklist) #Example
use frank::Fetching;
fn test_fetch() { let a = vec!["oh", "1", "two", "3", "four"]; let pick = vec![4usize, 0, 4]; let lost = a.fetch(&pick); println!("{:?}", lost); }