Dear rust devs,

is there a reason why it's e.g.:

   let vec = Vec::<int>::new();
   let vec = vec.iter().map(|i| *i + 1).collect::<Vec<int>>();

instead of:

   let vec = Vec<int>::new();
   let vec = vec.iter().map(|i| *i + 1).collect<Vec<int>>();


Thanks for any hints!


Greetings,
Daniel
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to