Skip to main content

patch_seq_list_last

Function patch_seq_list_last 

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

Last element of a list.

Stack effect: ( V – T Bool )

Convenience for the dup list.length 1 i.- list.get idiom. Returns the element at the highest index plus true on a non-empty list, or a placeholder Int 0 plus false on an empty list.

§Safety

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