I've never seen this usage of list comparison before but apparently it works in Rust (both of these print true):
println!("{}", vec![1, 2] < vec![10, 2]); println!("{}", (1, 2) < (10, 2));
println!("{}", vec![1, 2] < vec![10, 2]); println!("{}", (1, 2) < (10, 2));
No comments yet.