Iterative solution with implicit defaults. Similar to Python's defaultdict , Kotlin comes with a neat extension called MutableMap::withDefault ...
確定! 回上一頁