Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
WhereEnumerator
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { List<int> ints = new List<int> { 5,2,1,4,6}; var result = ints.WhereEnumerator(i => i > 3); foreach(var r in result) { Console.WriteLine(r); } } } public static class MyExtensions { public static IEnumerable<T> WhereEnumerator<T>(this IEnumerable<T> source, Predicate<T> predicate) { foreach(T s in source) { if (predicate(s)) { yield return s; } } } } }
run
|
edit
|
history
|
help
0
Jump Search
ICollection<T>.Add(T) - Performance Test
test code
Project Euler Problem 10
enums with extension method: better
różne wersje parsowania kwoty i daty (CultureInfo)
triangular matrix
hello
constructor execution sequence
n th to last element