Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
525: Add a chain! macro. r=jswrenn a=cassiersg This is proposal to add a `chain!` macro which creates an iterator running multiple iterators sequentially. It basically calls multiple times the standard `.chain()`. This macro is useful to avoid rightwards shift of the code when chaining many iterators. For the implementation and tests, I took inspiration on the `izip!` macro. Co-authored-by: Gaëtan Cassiers <gaetan.cassiers@uclouvain.be> Co-authored-by: Gaëtan Cassiers <cassiersg@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
89 additions
and
0 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