Extracted from Pike v8.0 release 276 as of 2016-07-30.
   

Method ADT.Stack()->reset()


Method reset

void reset(int|void initial_size)

Description

Empties the stack, resets the stack pointer and shrinks the stack size to the given value or 32 if none is given.

See also

create