This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Apply partitioningBy(predicate, counting()) to get Map<Boolean, Long> showing counts for each partition instead of the elements themselves.
You've completed the free preview. Subscribe to unlock every lesson in every course.