Atom - - Pop

Characters:

Tags: array

Arity: monadic

This atom is monadic, which means it takes one argument.

Functionality

Return all but the last element of a list (does not modify the list).

Details

This will not error on empty lists because Python allows list slices to go out of range and just ignores the part that is out of bounds. For integers, auto-cast to range, so it returns [1, 3, ..., z - 1].

Synonyms

This atom should work roughly the same way as or very similarly in concept to the following code snippets (some edge case exceptions may exist):