mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-05-05 00:10:29 +08:00
9 lines
258 B
C#
9 lines
258 B
C#
namespace Jellyfin.Plugin.MetaTube.Extensions;
|
|
|
|
public static class EnumerableExtensions
|
|
{
|
|
public static IEnumerable<(int index, T item)> WithIndex<T>(this IEnumerable<T> source)
|
|
{
|
|
return source.Select((item, index) => (index, item));
|
|
}
|
|
} |