Function stack::push()

← Back to Class stack



Module adtClass stack → push()

Description

Push a new element into the top of the Stack

stack::push(element)


Parameters


Return Value

-


Usage Example

import adt/stack
 
stack = stack()
 
stack.push(10)
stack.push(12)
stack.push(8)