// ISSUE: KT-50134 // WITH_STDLIB // FULL_JDK import java.util.stream.Collectors fun foo(){ listOf("").stream().collect( Collectors.groupingBy( { it }, Collectors.collectingAndThen( Collectors.counting(), Long::toInt ) ) ) }