Thoughts on Rust, a few thousand lines in
rcoh.me
rcoh.me
let another: Vec<u64> = some_vec.iter().map(|x|x + 5).collect();
Typically the `u64` part can be inferred based on the `map` function. Drop in `_` to elide the inner type. let another: Vec<_> = some_vec.iter().map(|x|x + 5).collect();
And if you are doing something later that implies `Vec<u64`, you can omit the type completely.