[racket-dev] Feature request- combined argmin and argmax in a single function
It might be useful to add to the language a combined function such as
(argminmax proc lst) that returned both the minimum and maximum values
of applying proc to lst. So that for very large lists (or for very
large numbers of lists where you need to know the min and max values
in the lists) instead of having to traverse the lists twice (once
with argmin and once with argmax) you'd now only have to trarverse the
list once with argminmax.
Thanks,
Harry Spier