/// Slow sort (selection sort)
Slow sort (selection sort)
Slow sort ( selection sort )
fn selection_sort(to_sort: &mut [isize]) {
    for i in 0..to_sort.len() {
        for c in i..to_sort.len() {
            if to_sort[i] > to_sort[c] {
                let tempo: isize = to_sort[i];
                to_sort[i] = to_sort[c];
                to_sort[c] = tempo;
            }   
        }
    }
}
fn selection_sort ( to_sort : & mut [ isize ] ) { for i in 0 .. to_sort . len ( ) { for c in i .. to_sort . len ( ) { if to_sort [ i ] > to_sort [ c ] { let tempo : isize = to_sort [ i ] ; to_sort [ i ] = to_sort [ c ] ; to_sort [ c ] = tempo ; } } } }
Slow sort (selection sort)
Slow sort ( selection sort )
to_sort
&mut [isize]