Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd Repeat and RepeatN #397
Conversation
This comment has been minimized.
This comment has been minimized.
|
I wanted to add some symmetry such that |
cuviper
changed the title
Repeat repeatn
Add Repeat and RepeatN
Jul 11, 2017
cuviper
force-pushed the
cuviper:repeat-repeatn
branch
from
366f6b7
to
74d8aa9
Sep 17, 2017
This comment has been minimized.
This comment has been minimized.
|
Rebased. |
cuviper
requested a review
from
nikomatsakis
Sep 17, 2017
nikomatsakis
approved these changes
Sep 22, 2017
nikomatsakis
requested changes
Sep 22, 2017
|
One minor nit to the documentation |
src/iter/repeat.rs
Outdated
| /// means to shorten it, or consider using | ||
| /// [the `repeatn()` function](fn.repeatn.html) instead. | ||
| /// | ||
| /// Example: |
This comment has been minimized.
This comment has been minimized.
src/iter/repeat.rs
Outdated
| /// Creates a parallel iterator that produces `n` repeats of `elt` | ||
| /// (by cloning it). | ||
| /// | ||
| /// Example: |
This comment has been minimized.
This comment has been minimized.
cuviper
force-pushed the
cuviper:repeat-repeatn
branch
from
74d8aa9
to
8a92d6d
Sep 23, 2017
This comment has been minimized.
This comment has been minimized.
|
Updated. |
nikomatsakis
approved these changes
Oct 6, 2017
This comment has been minimized.
This comment has been minimized.
|
Needs rebase. =) |
cuviper
force-pushed the
cuviper:repeat-repeatn
branch
2 times, most recently
from
914088b
to
dc9197f
Oct 6, 2017
ChristopherDavenport
and others
added some commits
May 13, 2017
cuviper
force-pushed the
cuviper:repeat-repeatn
branch
from
dc9197f
to
1773693
Oct 7, 2017
This comment has been minimized.
This comment has been minimized.
|
bors r=nikomatsakis |
bors bot
added a commit
that referenced
this pull request
Oct 7, 2017
This comment has been minimized.
This comment has been minimized.
bors
bot
merged commit 1773693
into
rayon-rs:master
Oct 7, 2017
2 checks passed
bors
Build succeeded
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
cuviper
deleted the
cuviper:repeat-repeatn
branch
Oct 12, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
cuviper commentedJul 11, 2017
This adds:
iter::repeat(elt) -> Repeatiter::repeatn(elt, n) -> RepeatNRepeatmethodstake(n)andzip(iter)convert toRepeatNThis extends #337, opened separately for review since it's a fairly major change.