What’s the purpose of partitioningBy
partitioningBy will always return a map with two entries, one for where the predicate is true and one for where it is false. It is possible that both entries will have empty lists, but they will exist. That’s something that groupingBy will not do, since it only creates entries when they are needed. At the … Read more