Skip to main content

persistent_map_assoc

Function persistent_map_assoc 

Source
pub fn persistent_map_assoc(
    cx: &mut Cx,
    map: &Value,
    key: Symbol,
    value: Value,
) -> Result<Value>
Expand description

Return a new map with key bound to value; the input map is unchanged.

Replaces an existing binding for key or appends a fresh one.