Carte vide de Kotlin
/*
MUTABLE MAPS
*/
val map = mutableMapOf<String, Int>()
simondoesstuff
/*
MUTABLE MAPS
*/
val map = mutableMapOf<String, Int>()
/*
IMMUTABLE MAPS
*/
val map = emptyMap<String, Int>()
println("map.isEmpty() is ${map.isEmpty()}") // true
val anotherMap = mapOf<String, Int>()
// Empty maps are equal
println("map == anotherMap is ${map == anotherMap}") // true