Dict::set()
Return a new dict with key associated with value.
key
value
let scores = Dict["Mario" => 10] scores.set("Mario", 11) //-> Dict["Mario" => 11] scores.set("Luigi", 8) //-> Dict["Mario" => 10, "Luigi" => 8]
public method set<T>(this: Dict<T>, key: String, Value: T): Dict<T> { __BUILT_IN_IMPLEMENTATION }