Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.2.1-preview-569" />

 EnumerableExtensions

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

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

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 TResult[] SelectButLast<TSource, TResult>(this TSource[] source, Func<TSource, TResult> selector)

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