3 ms·
> So instead we need to use the ugly for-loop manual collection > let res = vec![]; > for x in &iterator { > res.push(x.foo()?); > } I'm obviously not a r
by t43562 4y ago
> So instead we need to use the ugly for-loop manual collection
> let res = vec![];
> for x in &iterator {
> res.push(x.foo()?);
> }
I'm obviously not a rust programmer because I think that's much less ugly :-)