API Reference › Dict › Dict.set
method

Dict.set

Dict.set(d, key, value)

Associates value with key, inserting it or overwriting the previous value. The table grows automatically as it fills.

Example

program Demo {
  handler Step phase Update {
    Dict.set(bank, "gold", 100)
  }
}
← All symbols