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
The name and semantics can be changed if necessary, but I'd like an iterator that skips every nth element, and I wasn't able to find an existing one in reading through the docs. For example:
This is equivalent to .enumerate().filter(|(n,_)| n % 3 != 2).map(|(_,v)| v). (or just enumerate + filter_map. I am not sure if specific implementation will be faster.
The name and semantics can be changed if necessary, but I'd like an iterator that skips every
n
th element, and I wasn't able to find an existing one in reading through the docs. For example:The text was updated successfully, but these errors were encountered: