[][src]Function main::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 tolerates index errors, but could be used for building old school 8bit character based levels.

This is the early days in rust for me, and my first published crate. I like what it does and it seems to work well enough. Please leave feedback if

#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.