Given a sorted List as such:
List<Integer> a = Arrays.asList(1, 1, 1, 2, 4, 5, 5, 7);
Would there be a single-line way of splitting this array into sublists, each containing elements of equal value, eg:
List[List[1, 1, 1], List[2], List[4], List[5, 5], List[7]]