#[unsafe(no_mangle)]pub unsafe extern "C" fn patch_seq_list_get(stack: Stack) -> StackExpand description
Get an element from a list by index
Stack effect: ( Variant Int – Value Bool )
Returns the value at the given index and true, or a placeholder value and false if index is out of bounds.
§Error Handling
- Empty stack: Sets runtime error, returns 0 and false
- Type mismatch: Sets runtime error, returns 0 and false
- Out of bounds: Returns 0 and false (no error set, this is expected)
§Safety
Stack must have an Int on top and a Variant (list) below