Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 10
Why doesn't vec_of_f64.sort() compile, and what is the fix?
A
f64 isn't Ord (NaN breaks total order); use sort_by(|a, b| a.total_cmp(b))
B
f64 can't be stored in a Vec
C
Floats sort automatically with sort_unstable
D
sort requires Copy