I am the proud owner of a new crate. And you are too!


Frank, the fetch and rank at Rust's website adds guarded fetching and ranking features to generic vectors.  I went a little fast and ripped apart a little program and poured its guts into a crate largely to learn rustdoc and how cargo publish works.... not my best documentation effort.. but I am happy with the generics vector functions and how they seamless bolt into rust programming language features.  And there can be updates should other people use my reasonably solid code with crummy documentation.

use frank::*;

fn main() {

let myvec = vec!["a is for apple", "b is for bear", "c is for code"]; 

let myranks = myvec.rank();  //Hoeffding 1947 style ranking, a count of greaters for each item in a vec. 

let mypicks = vec![2usize,1,0];

let myreorg = myvec.fetch(&mypicks); 


In truth, the fetch and rank are just about that simple to use.

Cheers,  Dusty

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
« The Wall Compromise Isn't. | Main | Things I don't know: Why Contact Binaries Predominate »