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