curry minimum-by
rename oddly named arg