Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Collections
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { MyCleverEnumerable cleverEnumerable = new MyCleverEnumerable(); Console.WriteLine("Yield test:"); foreach(int cleveri in cleverEnumerable.getItems()){ Console.WriteLine(cleveri); } } public class MyCleverEnumerable { public System.Collections.Generic.IEnumerable<int> getItems() { yield return 2; yield return 199; Console.WriteLine("Yield side-effect"); yield return 134; yield break; } } } }
run
|
edit
|
history
|
help
0
Arrays Solved
Intuit // C# // listing_4.9 (do_while // kupi_slonika
Collection_ basic datastructure brushup
,
Why Linqdb is cool if you are a Csharper
ASCII -> Braille ASCII
swap using xor
operator
Date Comparison
linked list (add to end and beginning, and looking for cycles based on Floyd's algorithm)