Next: , Previous: , Up: stacks   [Index]


36.2 Inspecting stack objects

The following syntactic bindings are exported by the library (vicare containers stacks). The syntactic bindings whose name is prefixed with $ are unsafe operations: they do not validate their arguments before accessing them.

Function: stack-empty? stack
Function: $stack-empty? stack

Return #t if stack is empty; otherwise return #f.

Function: stack-not-empty? stack
Function: $stack-not-empty? stack

Return #t if stack is not empty; otherwise return #f.

Function: stack-size? stack
Function: $stack-size? stack

Return an exact integer representing the number of objects in stack.