Code/ListExtensions.cs
using System.Collections.Generic;
namespace ExtendedCollections;
public static class ListExtensions
{
public static T GetAndRemoveAt<T>(this IList<T> list, int index)
{
var value = list[index];
list.RemoveAt(index);
return value;
}
}