using System.Collections.Generic;
using System.Linq;
namespace GlitchyEngine.Extensions;
///
/// Extends the -interface with useful methods.
///
public static class EnumExtension
{
///
/// Enumerates the enumerable and returns a tuple containing the item and the index for every item.
///
///
///
///
public static IEnumerable<(T item, int index)> WithIndex(this IEnumerable self)
=> self.Select((item, index) => (item, index));
}