Y
Hacker News
new
|
ask
|
show
|
jobs
by
s-lambert
1109 days ago
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));