Garden 🌻

Dict::set()

Return a new dict with key associated with value.

Example
let scores = Dict["Mario" => 10]
scores.set("Mario", 11) //-> Dict["Mario" => 11]

scores.set("Luigi", 8)
//-> Dict["Mario" => 10, "Luigi" => 8]
Source Code
public method set<T>(this: Dict<T>, key: String, Value: T): Dict<T> {
  __BUILT_IN_IMPLEMENTATION
}