-
In IntelliJ/Rust, when I’m writing a rust
for
, everything is very responsive + helpful + on the fly type inference / etc … -
In IntelliJ/Rust, when I’m writing a rust
map ( |a, b| { ... } )
, IntelliJ often freezes, for NO OBVIOUS REASON whatsoever. This is not some occasional thing, it happens with probability > 50%. (I’ve been observing this alot lately). -
Now, when using a Rust
for
, I often have to do the “collect” myself, i.e.
let mut ans = Vec::new()
for blahblah in foobar.iter() {
ans.push(blahblahblah);
}
- Now, my question is: is there a way to get a
for
to return an iterator ?