distinctBy

inline fun <T, D : Dimension, K> MultiArray<T, D>.distinctBy(selector: (T) -> K): NDArray<T, D1>

Returns a new array containing only elements from the given array having distinct keys returned by the given selector function.