sequences.extras: adding supremum-by* and infimum-by* that return indices.