mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
10 lines
284 B
C#
10 lines
284 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace GlitchyEngine.Extensions;
|
|
|
|
public static class EnumExtension
|
|
{
|
|
public static IEnumerable<(T item, int index)> WithIndex<T>(this IEnumerable<T> self)
|
|
=> self.Select((item, index) => (item, index));
|
|
} |