Skip to content

Add "new with at least n primes" function to Sieve#5

Open
wackywendell wants to merge 2 commits intohuonw:masterfrom
wackywendell:at_least
Open

Add "new with at least n primes" function to Sieve#5
wackywendell wants to merge 2 commits intohuonw:masterfrom
wackywendell:at_least

Conversation

@wackywendell
Copy link
Contributor

This adds a function to Sieve to create a new Sieve instance that has at least n primes in it, for a given value of n.

This also adds an implementation of Iterator and IntoIterator for Sieve, just for convenience.

As discussed in #3, the name new_at_least is pretty terrible, but I couldn't come up with anything better. I'm hoping for suggestions!

@autohuonw
Copy link
Collaborator

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@huonw
Copy link
Owner

huonw commented Jul 10, 2015

Woo, thanks.

I haven't come up with any other names I like yet...

@wackywendell
Copy link
Contributor Author

Yes, neither have I. The best I've thought of is new_with_count, which does seem a bit more descriptive, but I'm not sure I like it...

@autohuonw
Copy link
Collaborator

☔ The latest upstream changes (presumably 6806007) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants