<< Prev | - Up - | Next >> |
Stacks can be easily implemented by using cells and lists. Therefore, they are not directely provided by the Oz base environment. The type of a stack object is:
unit(push : value : ->
pop : -> value
put : value ->
get : -> value
top : -> value
size : -> int
isEmpty: -> bool
clear : ->
toList : -> list
... )
<< Prev | - Up - | Next >> |