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