改了一亿个东西,修了一亿个 BUG

This commit is contained in:
2021-10-19 17:42:18 +02:00
parent 5b907309e0
commit 888ddce4ef
40 changed files with 1870 additions and 1715 deletions

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Immutable;
namespace AnotherReplayReader.Utils
{
static class ImmutableArrayExtensions
{
public static int? FindIndex<T>(this in ImmutableArray<T> a, Predicate<T> p)
{
for (var i = 0; i < a.Length; ++i)
{
if (p(a[i]))
{
return i;
}
}
return null;
}
}
}