Kotlin컬렉션 연산associateBy

associateBy컬렉션 연산

키 함수로 Map을 만듭니다.

문법

collection.associateBy { keySelector }