Stack::top

(Available since version 1.0)

Stack::topPeeks at the node from the end of the stack

Description

public mixed Stack::top ( void )

Parameters

This function has no parameters.

Return Values

The value of the last node.

Errors/Exceptions

Throws SEIDS::LinkedLists::CantPeekAtEmptyException when the data-structure is empty.

To Top