onResultOf<T> method

Comparator<T> onResultOf<T>(
  1. Map1<T, R> function
)

Returns a Comparator of type T that extracts a sort key of type R.

Implementation

Comparator<T> onResultOf<T>(Map1<T, R> function) =>
    (a, b) => this(function(a), function(b));