SourceForge.net Logo

Euphoria Standard Library
(ESL)

Home Page | Project Status | Contribute | Guidelines and Information



Euphoria Standard Library module:

stack.e



1. Introduction


A simple yet flexible implementation of the stack data type.



2. Routines

new_stack

Syntax: i = new_stack()
Description: Initializes a new stack and returns its integer id number.
Status: PROPOSED


pop

Syntax: x = pop(i)
Description: Returns object x from the top of the stack with id number i.
Status: PROPOSED


push

Syntax: push(i, x)
Description: Sticks object x at the top of the stack with id number i.
Status: PROPOSED


stack_empty

Syntax: i = stack_empty(i)
Description: Returns TRUE (1) if stack with id number i is empty, returns 0 if it isn't. If no stack has been allocated at that id with new_stack then return -1.
Status: PROPOSED