]> git.lizzy.rs Git - rust.git/commit
Add an iterate function to core::iter
authorJakub Wieczorek <jakub@jakub.cc>
Sun, 6 Jul 2014 22:50:53 +0000 (00:50 +0200)
committerJakub Wieczorek <jakub@jakub.cc>
Sun, 13 Jul 2014 09:47:40 +0000 (11:47 +0200)
commited54162e86cd00b7a4ced8957aac7f56897f6fb5
tree675f830b5b9cd3b28ff9f976dab70c06b30735a4
parent88231a9b70574990363262e6be8451df8782e4ca
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.
src/libcore/iter.rs
src/libcoretest/iter.rs