Last active
July 17, 2020 21:48
-
-
Save JohnMGant/a730c6c28ccd0d247324750c2c911c85 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static void Main() { | |
| foreach (var line in TellJokeAboutMice()) | |
| { | |
| Console.WriteLine(line); | |
| } | |
| } | |
| private static IEnumerable<string> TellJokeAboutMice() | |
| { | |
| yield return "MR MICE."; | |
| yield return "MR NOT."; | |
| yield return "OSMR! CM EDBD FEET?"; | |
| yield return "LIB! MR MICE!"; | |
| yield break; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment