-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
377: Add Itertools::filter_{,map_}results r=jswrenn a=gin-ahirsch I found myself wanting `filter_map_results()` and just implemented `filter_results()` in the same stretch. I hope you find it useful! I wasn't sure if #236 applies to these new iterators; I just implemented them. 381: Add Itertools::intersperse_with r=jswrenn a=gin-ahirsch Pretty self-explanatory. Useful for non-clonable elements or otherwise stateful interspersing. `intersperse()` could be implemented via `intersperse_with()`, allowing the change to be more minimal. I haven't done it currently, but if you don't see any downsides I'd amend this change to do `self.intersperse_with(|| element)` for `intersperse()` instead. Co-authored-by: Alexander Hirsch <alexander.hirsch@gin.de>
- Loading branch information
Showing
3 changed files
with
309 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.