selection_sort

Crates.ioselection_sort
lib.rsselection_sort
version1.1.0
sourcesrc
created_at2019-12-31 02:24:02.672531
updated_at2019-12-31 18:53:23.847173
descriptionSelection sort algorithm
homepage
repositoryhttps://github.com/dmjio/selection_sort
max_upload_size
id193714
size4,279
David Johnson (dmjio)

documentation

README

selection_sort Build Status crates.io

Selection Sort implemented in Rust

use selection_sort::selection_sort;

fn main () {
  let mut vec = vec![1, 3, 2];
  selection_sort(&mut vec);
  println!("{:?}", vec);
  assert!(vec == [1, 2, 3]);
}
// [1,2,3]
Commit count: 21

cargo fmt