[racket-dev] Feature request- combined argmin and argmax in a single function

From: Harry Spier (vasishtha.spier at gmail.com)
Date: Wed Jun 27 15:10:39 EDT 2012

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

Posted on the dev mailing list.