I hereby claim:
- I am SimonPStevens on github.
- I am simonpstevens (https://keybase.io/simonpstevens) on keybase.
- I have a public key whose fingerprint is D70C DE6A 9EB7 6721 5CE5 34D7 A493 E691 EFD0 2F8A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
0x59D8C884971d58cb4845CC5c16dB77efEE5103A9 |
0x59D8C884971d58cb4845CC5c16dB77efEE5103A9 |
namespace System.Collections.Generic | |
{ | |
public static class RunOnceEnumerableExtensions | |
{ | |
public static IRunOnceEnumerable<T> OnlyRunOnce<T>(this IEnumerable<T> source) | |
{ | |
return new RunOnceEnumerable<T>(source); | |
} | |
public interface IRunOnceEnumerable<T> : IEnumerable<T> |
public static class ForEachHelper | |
{ | |
public static void ForEachUntil<T>(IEnumerable<T> enumerable, Func<T, bool> until, Action<T> loopInner) | |
{ | |
var enumerator = enumerable.GetEnumerator(); | |
while (enumerator.MoveNext() && !until(enumerator.Current)) | |
{ | |
loopInner(enumerator.Current); | |
} | |
} |
[core] | |
autocrlf = false | |
pager = less | |
[push] | |
default = tracking | |
[branch] | |
autosetupmerge = true | |
[color] | |
diff = auto | |
ui = auto |