this post was submitted on 17 Jan 2022
11 points (92.3% liked)

Rust Programming

8161 readers
6 users here now

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Yujiri@lemmy.ml 6 points 2 years ago (2 children)

Uh... what?

So I understand the type signature she's asking for is Iter<Result<T, E>> -> Result<Iter<T>, Iter<E>>

This suggestion could really use some use case examples. It sounds sufficiently obscure to me that I wouldn't complain about having to write my own a function for this

Also, where does the name evert come from?

[–] Ephera@lemmy.ml 1 points 2 years ago* (last edited 2 years ago) (1 children)

I can see this being useful for parsing. You often want to report all of the parsing errors to the user in one go, so collecting them into a list or iterator is useful.

But yeah, still relatively obscure.

And I'm guessing, "evert" is simply the respective English word: https://en.wiktionary.org/wiki/evert
As a non-native speaker, I didn't know that word either...

[–] Yujiri@lemmy.ml 2 points 2 years ago

I'm a native english speaker and I didn't know that word :o