HomeManualTopicsTypesSymbols

std_types::list/std::peek

returns the last item of a non-empty list

Parameters

None

Results

None

Description

It is an error to attempt to peek an item of an empty list.

Implements

std::peek returns the last item of a collection without removing it