Skip to main content

patch_seq_list_first

Function patch_seq_list_first 

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

First element of a list.

Stack effect: ( V – T Bool )

Convenience for the common 0 list.get idiom. Returns the element at index 0 plus true on a non-empty list, or a placeholder Int 0 plus false on an empty list (matching list.get’s out-of-bounds shape).

§Safety

Stack must have a Variant (list) value on top.