home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_07
/
8n07076a
< prev
next >
Wrap
Text File
|
1990-06-19
|
409b
|
15 lines
'isempty : int X Array( int, dim) -> Boolean
'isempty( index, v) = ( index == 0 )
'isfull : int X Array( int, dim) -> Boolean
'isfull( index, v) = ( index >= dim )
'push : int X Array( int, dim) X int -> int X Array( int, dim)
'push( index, v, x) = ( index + 1, e( index, x, v))
'pop : int X Array( int, dim) -> int X Array( int, dim) X int
'pop( index, v) = ( index - 1, v, v[index - 1])