Skip to main content

interp_hashmap_set

Function interp_hashmap_set 

Source
fn interp_hashmap_set(
    args: &[RValue],
    named: &[(String, RValue)],
    context: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Insert or update a key-value pair in a HashMap.

@param h integer scalar: hashmap ID @param key character scalar: the key to set @param value any R value to store @return the previous value for the key, or NULL if the key was new