[−][src]Function lib::sockball
pub fn sockball<T>(a: usize, b: T) -> (T, usize)
#Description Rank and Fetch adds generic vector ranking and fetching features. It adds vector.rank() and vector.fetch(&my_vec_usize_picks) functionality. rank() counts the number of items in a generic vector and returns the a vector of counts for each item greater than itself. Useful for nonparametric statistics with order rather than distances. fetch() is intended for user specified subsampling of generic data, and fetch_guard()tolerates index errors, but could be used for building custom game levels from select elements that previuosly caused the most player deaths.
This is the early days in rust for me, and my first published crate. I like rust, and am pretty happy with the code work well enough. Please leave feedback as.
#License
Creative Commons Zero. Use at your own risk, I'm basically a sweaty gorilla that can press computer keys and this is my first published crate.
Oh, bonus: fn sockball is used to pair an index value to a generic value. Useful, but maybe only if you want to couple tuples for reversing a vector sort.