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