Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Doc string in Base.Generator #35259

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

r0cketr1kky
Copy link
Contributor

Solves #35226

@StefanKarpinski StefanKarpinski merged commit a9be54d into JuliaLang:master Mar 25, 2020
@JeffBezanson
Copy link
Member

First, I don't think if guards should be mentioned here, since if you have one you don't get a Generator but a Filter iterator. (I realize this PR didn't introduce that, but we might as well fix it while we're at it.)

The original wording was also chosen for a reason. The point is that a Generator happens to be what you get when you write x for x in y. It's not the only syntax for constructing a Generator; Generator(f, itr) also works like for any type.

KristofferC added a commit that referenced this pull request Mar 25, 2020
oxinabox pushed a commit to oxinabox/julia that referenced this pull request Apr 8, 2020
ravibitsgoa pushed a commit to ravibitsgoa/julia that referenced this pull request Apr 9, 2020
KristofferC pushed a commit that referenced this pull request Apr 11, 2020
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