HomeManualTopicsTypesSymbols

std::pop

remove and return the last item of a collection

Parameter

collection
the collection to be modified

Results

collection
the modified collection
item
the removed item

Topics

Strings

Lists

See also

std::peek returns the last item of a collection without removing it
std::drop removes the last item of a collection without returning it
std::push add a single item at the end of a collection
std::put adds a single item at the front of a collection

Implemented by

std_types::generic_list removes and returns the last element of the list
std_types::list removes and returns the last item of a non-empty list