Description Usage Arguments Details Value Author(s) Examples
These functions implement simple stack or queue functionality.
1 2 3 4 5 6 7 8 9 10 11 |
stname |
A single character string, giving the name of the stack or queue. |
value |
Value to add to the stack or queue. |
The funtion stinit creates an empty stack named stname.
The funtion stclear removes the stack named stname.
The funtion stpush appends element value at the end of the
stack named stname.
The funtion stpop removes the last element of the stack named
stname and returns it invisible.
The funtion stunshift appends element value at the beginning of
the stack stname.
The funtion stshift removes the first element of the stack named
stname and returns it invisible.
The funtion stseek returns the last element of the stack named
stname but does not remove it.
The funtion stfirst returns the first element of the stack named
stname but does not remove it.
The funtion stlist returns the stack named stname as list.
The funtion stlength returns the number of elements stored in the stack
named stname.
The funtion stexists returns TRUE if a stack named
stname exists, otherwise FALSE.
The functions stpop and stshift return the last/first element
of the stack invisibly. The functions stseek and stfirst just
return the last/first element.
Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>
Maintainer: Mayo Roettger <mayo.roettger@hhu.de>
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Loading required package: Matrix
Loading required package: lattice
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.