Open Enyium opened 1 year ago
Hi there, just to clarify: iter.omit_after(n, substitute_iter)
is a shorthand for iter.take(n).chain(substitute_iter)
, right?
No, the substitute iterator isn't fed off of when there's nothing to be omitted after n
items.
I wrote this code for my purposes. But you can feel free to edit it and incorparate it into your crate.
Example transformations
Code