« first day (3028 days earlier)      last day (446 days later) » 

5:18 AM
-2
Q: I have a question about these rust code, could someone help to explain it? thx

baby195lxlfn main() { let v1 = vec![1, 2]; let v2 = vec![1, 2]; let fst = &v1[0]; //define a variable that get v1[0] match v2.get(0) { Some(fst) => println!("v1[0]:{} is qual to v2[0]:{}", fst, v2[0]), None => println!("v1[0] is not qual to v2[0]"), } } output: v1[0]:...

> I have a question about these rust code, could someone help to explain it? thx
best title of the year nomination
 

« first day (3028 days earlier)      last day (446 days later) »