Skip to main content

TakeLargestBy

TakeLargestBy[data,f,n] gives the n elements ei in data for which f[ei] is largest, sorted in descending order.

TakeLargestBy[data->prop,f,n] gives the property prop for the n elements in data for which f[ei] is largest.

TakeLargestBy[data,f,n,p] uses the ordering function p for sorting.

TakeLargestBy[f,n] represents an operator form of TakeLargestBy that can be applied to an expression.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.