DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="0.5.1" />

 OneDimensionalArray

public static class OneDimensionalArray
Provides specialized methods to work with one-dimensional array.
public static int BitwiseCompare<T>(this T[] first, T[] second) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Compares content of the two arrays.

public static bool BitwiseEquals<T>(this T[] first, T[] second) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Determines whether two arrays contain the same set of bits.

public static int BitwiseHashCode<T>(this T[] array, bool salted) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Computes bitwise hash code for the array content.

Computes salted bitwise hash code for the array content.

public static int BitwiseHashCode<T>(this T[] array, int hash, Func<int, int, int> hashFunction, bool salted = true) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Computes bitwise hash code for the array content and custom hash function.

public static O[] ConvertAll<I, O>(this I[] input, Func<long, I, O> mapper)

Converts each array element from one type into another.

public static void ForEach<T>(this T[] array, ItemAction<long, T> action)

Applies specific action to each array element.

public static T[] Insert<T>(this T[] array, T element, long index)

Insert a new element into array and return modified array.

public static bool IsNullOrEmpty<T>(this T[] array)

Indicates that array is null or empty.

public static T[] RemoveFirst<T>(this T[] input, long count)

Removes the specified number of elements from the beginning of the array.

public static T[] RemoveLast<T>(this T[] input, long count)

Removes the specified number of elements from the end of the array.

public static bool SequenceEqual<T>(this T[] first, T[] second) where T : IEquatable<T>

Determines whether two arrays contain the same set of elements.

public static bool SequenceEqual(this object[] first, object[] second)

Determines whether two arrays contain the same set of elements.

public static T[] Slice<T>(this T[] input, long startIndex, long length)

Returns sub-array.