set

abstract operator fun <T : Any> set(key: String, value: T)

Associates the specified value with the specified key in the context. If the context previously contained a value associated with the key, the old value is replaced by the specified value.

val context: Context = Context(1.toId(), host)
context["key"] = 1