distinct

fun <T, D : Dimension> MultiArray<T, D>.distinct(): NDArray<T, D1>

Returns a new array containing only distinct elements from the given array.