can `f` be renamed to indicate it's a comparison function (as opposed to a general mapping function)?