Skip to main content

mutable_array_get

Function mutable_array_get 

Source
pub fn mutable_array_get(
    arr: &Value,
    idx: &Value,
    default: Option<&Value>,
) -> Result<Value, SemaError>
Expand description

mutable-array/get: indexed read. default is the optional third argument — returned on an out-of-bounds index instead of erroring. Type and index errors are raised regardless of the default.