Sort an integer array: Difference between revisions

→‎{{header|Rust}}: Updated to the Rust 1.3.0
(Added Axe)
(→‎{{header|Rust}}: Updated to the Rust 1.3.0)
Line 1,426:
 
=={{header|Rust}}==
Works with Rust 0.11-pre. Uses merge sort in place (undocumented), allocating ~2*n memory where n is a length of an array.
<lang rust>fn main() {
let mut a = vec!(9, 8, 7, 6, 5, 4, 3, 2, 1, 0);
 
a.sort();
println!("{:?}", a);
}</lang>