Skip to main content

index_set

Function index_set 

Source
pub fn index_set(
    coll: &RuntimeValue,
    idx: &RuntimeValue,
    value: RuntimeValue,
) -> Result<(), String>
Expand description

Set item idx of collection to value — 1-based list set, or map insert. (Struct field set needs an environment reassign and stays engine-side.)