Returns a collector that partitions the elements based on the pred function.
The result map always contains lists for both true and false keys. There are no guarantees on the type, mutability, or thread-safety of the returned map and list.
pred |
a predicate function |
the collector implementation |