Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.0.1-preview-722" />

 EnumerableExtensions

static class EnumerableExtensions
public static T[] Append<T>(this T[] array, T item)

public static Pair<bool, ParameterExpression>[] AsParameterPairs(this ParameterExpression[] source)

public static ParameterExpression[] AsParameters(this Type[] source)

public static Stack<TItem> AsStack<TItem>(this IEnumerable<TItem> enumerable)

public static TEnumerable[] CastToArray<TEnumerable>(this IEnumerable<TEnumerable> enumerable)

public static bool ContainsReference<TElement>(this TElement[] array, TElement element)

public static int GetReferenceIndex<TElement>(this TElement[] array, TElement element)

public static TResult LastElement<TResult>(this TResult[] source)

public static TSource[] SelectButLast<TSource>(this TSource[] source)

public static TEnumerable[] WhereOrDefault<TEnumerable>(this IEnumerable<TEnumerable> enumerable, Func<TEnumerable, bool> predicate)