3 ms·
I don't want to write a separate sort function, the computer can and should do all that work for me automatically. Because Default is tricky to genericise, the
by tialaramex 4y ago
I don't want to write a separate sort function, the computer can and should do all that work for me automatically.
Because Default is tricky to genericise, there literally are 32 distinct implementations provided for Rust's [T; 1] through [T; 32] of Default::default()
https://doc.rust-lang.org/src/core/array/mod.rs.html#467 https://doc.rust-lang.org/src/core/array/mod.rs.html#467