Function Memory.ShrinkArray

ShrinkArray<T> (T[] arr, int newLength)

Returns a new array with at most length newLength.

Public Static
T[] ShrinkArray<T> (

T[]

arr

int

newLength

)

Returns a new array with at most length newLength.

The array will contain a copy of all elements of arr up to but excluding the index newLength.