stack::push()
← Back to Class stack
Push a new element into the top of the Stack
stack::push(element)
element
-
import adt/stack stack = stack() stack.push(10) stack.push(12) stack.push(8)
Documentation version: 1.1.03. Updated on: 11 February 2026.Dinfio is designed and written by Muhammad Faruq Nuruddinsyah. Copyright © 2014-2026. All rights reserved.