Post

What is the idiomatic way to write a map closure with a result type? Do I just collect it as a result and use a ? On it? Doesn’t that make the iteration occur twice? #rust #rustlang

The alternative to seem to be to just use a for loop or pay another iteration penalty like I did above… Surely there’s a more elegant solution?

0 reposts0 likes

No replies yet.