Una lista es una colección ordenada de elementos con acceso indexado. Kotlin separa la Lista de solo lectura de MutableList; la primera no tiene agregar/eliminar; este último extiende List con operaciones de mutación. Utilice las fábricas listOf y mutableListOf; Evite ArrayList a menos que necesite un tipo de JVM específico.
Lista de estilo inmutable
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
▼
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.