← SnippetsListTest.kt
Creating Collections with Repeating Elements in Kotlin
Learn how to create different collections such as Lists, MutableLists, or even Arrays with repeating elements in them
Oct 18, 2023 · 1 min read
Use:
Since index is unused, you could omit it:
Or, even using data class: