patch_seq_map_get_safe

Function patch_seq_map_get_safe 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_map_get_safe(stack: Stack) -> Stack
Expand description

Get a value from the map by key, with error handling

Stack effect: ( Map key – value Int )

Returns (value 1) if found, or (0 0) if not found. Panics if the key type is not hashable.

§Safety

Stack must have a hashable key on top and a Map below