I am amused to notice that, in a list whose entries are all equal, min shall end up pointing at the last while max points at the first.