code: public static <INPUT extends Comparable<INPUT>> Iterable<List<INPUT>> toUniqueAndSortedPartitions(Collection<INPUT> inputs) {
      return toUniqueAndSortedPartitions(inputs, i -> i);
    }
docs: Ensure values {@code inputs} are unique (which avoids useless arguments) and sorted before creating the partition.