SortedList
An implementation of a SortedList data structure in rust.
This repository is under active development. For available features, see the Usage section (and the source!).
Usage
let array = vec!;
let mut sorted_list = from;
println!;
// [19, 25, 90]
sorted_list.insert;
sorted_list.insert;
sorted_list.insert;
println!;
// [1, 19, 20, 25, 90, 100]
let x = sorted_list.remove;
println!;
// 25
// removed the 3-rd smallest (0-indexed) element.
println!;
// 20
println!;
// 20
println!;
// [1, 19, 20, 90, 100]