Skip to content

MaximalBy

Returns the element(s) maximising a key function.

$ wo 'MaximalBy[{1, -3, 2, -4}, Abs]'
{-4}