{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/5018","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/5018/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/5018/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/5018/events","html_url":"https://github.com/dotnet/roslyn/issues/5018","id":104939167,"number":5018,"title":"Proposal: Returning flat enumerables within an IEnumerable<T> function.","user":{"login":"adamhewitt627","id":3036550,"avatar_url":"https://avatars.githubusercontent.com/u/3036550?v=3","gravatar_id":"","url":"https://api.github.com/users/adamhewitt627","html_url":"https://github.com/adamhewitt627","followers_url":"https://api.github.com/users/adamhewitt627/followers","following_url":"https://api.github.com/users/adamhewitt627/following{/other_user}","gists_url":"https://api.github.com/users/adamhewitt627/gists{/gist_id}","starred_url":"https://api.github.com/users/adamhewitt627/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamhewitt627/subscriptions","organizations_url":"https://api.github.com/users/adamhewitt627/orgs","repos_url":"https://api.github.com/users/adamhewitt627/repos","events_url":"https://api.github.com/users/adamhewitt627/events{/privacy}","received_events_url":"https://api.github.com/users/adamhewitt627/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-04T18:03:08Z","updated_at":"2015-09-04T18:03:08Z","closed_at":null,"body":"I've personally done something like this in several cases:\r\n\r\n```C#\r\npublic IEnumerable<string> SayHello(string[] names)\r\n{\r\n    yield return \"Hello everyone!\";\r\n    yield return \"Welcome to: \"\r\n    foreach (var n in names)\r\n    {\r\n        yield return names;\r\n    }\r\n}\r\n```\r\n\r\nWhile it's a contrived example, my point is having a `foreach` whose sole purpose is to flatten the return of an enumerable. I propose something like:\r\n\r\n```C#\r\nyield returnall names;\r\n```"}}