Gentee Programming Language > Documentation > Libraries Download documentation

stack.push

The method adds a number to a stack. The stack must be described as a stack of uint or int.
 
uint stack.push(
      uint   val
)

Parameters

valAdded number.

Return value

The added value is returned.


The method adds a string to a stack. The stack must be described as a stack of str.
 
str stack.push(
      str   val
)

Parameters

valAdded string.

Return value

The added string is returned.


Add an item to a stack.

uint stack.push()

Return value

The pointer to the added item.

See also

    Stack


 Copyright © 2004-2006 Gentee Inc. All rights reserved.