Proposal: "yield all elements" statement #8351
Replies: 1 comment
-
Dupe of #378. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This isn't incredibly common, but it pops up often enough when working with enumerables, that it would be nice to have a simpler way to write it:
Would it be possible to get a way to represent this pattern as a single statement that would lower to the loop above? Something like
yield in bar;
oryield from bar;
, for example.Beta Was this translation helpful? Give feedback.
All reactions