Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an iterate function to core::iter
Implementation by Kevin Ballard. The function returns an Unfold iterator producing an infinite stream of results of repeated applications of the function, starting from the provided seed value.
- Loading branch information
Jakub Wieczorek
committed
Jul 13, 2014
1 parent
88231a9
commit ed54162
Showing
2 changed files
with
34 additions
and
4 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
ed54162
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at https://github.com/jakub-/rust/commit/ed54162e86cd00b7a4ced8957aac7f56897f6fb5
ed54162
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging jakub-/rust/iterate = ed54162 into auto
ed54162
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jakub-/rust/iterate = ed54162 merged ok, testing candidate = fbeee04
ed54162
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/315
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/316
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/315
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/316
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/318
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/319
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/318
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/324
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/319
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/318
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/321
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/319
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/319
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/320
ed54162
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = fbeee04