You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd be happy to implement this. But if anyone has a better suggestion for the name/signature/the problem solution itself, I'd be happy to read it, too!
The text was updated successfully, but these errors were encountered:
The filter_map solution is really elegant, thank you! Do you think then that filter_position would have a purpose? It's less to type, but also less powerful.
In a private project of mine I need to handle a lot of vectors and iterators, and as such I found myself writing things equivalent to
or
pretty often. So I wondered if it would be worth adding a function with a signature like this to
Itertools
?I'd be happy to implement this. But if anyone has a better suggestion for the name/signature/the problem solution itself, I'd be happy to read it, too!
The text was updated successfully, but these errors were encountered: