| last_element_index | Function (ROM Call 0x3BA)

AMS 1.01 or higher | estack.h

ESI last_element_index (CESI ptr);

Searches for the last expression in the list.

last_element_index calls next_expression_index in a loop starting from ptr until END_TAG is reached, then returns the pointer to the last encountered expression before END_TAG. So, assuming that ptr points to a member of the list (including argument lists too), last_element_index will return the pointer to the last element of the list.

Uses: next_expression_index
Used by: push_desolve