Function stack::getsize()

← Back to Class stack



Module adtClass stack → getsize()

Description

Get the size of the Stack

stack::getsize()


Parameters

There are no parameters.


Return Value


Usage Example

import adt/stack
 
stack = stack()
 
stack.push(10)
stack.push(12)
stack.push(8)
 
s = stack.getsize()   ' Returns 3