public static LeftArray <ulong> distinct <valueType>(this SubArray <valueType> array, Func <valueType, ulong> getValue) { ulong[] newValues = array.getArray(getValue); newValues.sort(0, newValues.Length); return(newValues.distinct()); }