Element in r that maximizes fun. LaTeX: \underset{x}{\arg\max}
assert(argmax!(x => x*x)([1, 2, 3]) == 3); assert(argmax!(x => x*x)([3, 2, 1]) == 3);
See Implementation