Skip to content

Conversation

@CameronBieganek
Copy link
Contributor

@CameronBieganek CameronBieganek commented Mar 5, 2020

This PR adds examples to the in and docstrings that show how to use those infix operators in broadcasting expressions where the collection on the right side is intended to be treated as scalar. I've included one example with the right side enclosed in a tuple and one without the tuple to demonstrate the difference between the two, since the latter is also valid syntax that could easily be confused with the right-side-as-a-scalar behavior.

@kshyatt kshyatt added the docs This change adds or pertains to documentation label Mar 6, 2020
@CameronBieganek
Copy link
Contributor Author

Ok, I've added a more detailed explanation to the docs, as requested by @stevengj and @nalimilan . I think this PR might be ready to be merged now.

@StefanKarpinski StefanKarpinski merged commit a171969 into JuliaLang:master Mar 23, 2020
@CameronBieganek CameronBieganek deleted the patch-1 branch March 24, 2020 02:10
oxinabox pushed a commit to oxinabox/julia that referenced this pull request Apr 8, 2020
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
ravibitsgoa pushed a commit to ravibitsgoa/julia that referenced this pull request Apr 9, 2020
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
KristofferC pushed a commit that referenced this pull request Apr 11, 2020
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs This change adds or pertains to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants