namespace StabilityMatrix.Core.Extensions; public static class EnumerableExtensions { public static IEnumerable<(int, T)> Enumerate( this IEnumerable items, int start ) { return items.Select((item, index) => (index + start, item)); } public static IEnumerable<(int, T)> Enumerate( this IEnumerable items ) { return items.Select((item, index) => (index, item)); } }