Exemple de la carte Scala
val myMap = Map(
("key", 56),
("anotherKey", "value")
)
println(myMap("key")) // "56"
z0san
val myMap = Map(
("key", 56),
("anotherKey", "value")
)
println(myMap("key")) // "56"
collection = (e1, e2, e3, ...)
//func is some function
collection.map(func)
//returns collection(func(e1), func(e2), func(e3), ...)