HomeManualTopicsTypesSymbols

std::drop

removes the last item of a collection without returning it

Parameter

collection
the collection to be modified

Result

collection
the modified collection

Topics

Strings

Lists

See also

std::pop remove and return the last item of a collection
std::peek returns the last item of a collection without removing 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::list removes the last item of a non-empty list