Kotlinコレクション操作associateBy
maxOf

associateByコレクション操作

partition

キー関数でMapを作ります。

構文

collection.associateBy { keySelector }