Extracted from Pike v8.0 release 28 as of 2015-08-03.
   

Method ADT.Stack()->top()


Method top

mixed top()

Description

Returns the top element from the stack, without popping it.

Throws

Throws an error if called on an empty stack.