 
      
      stack::isempty()Check whether the size of the Stack is empty or not
stack::isempty()There are no parameters.
boolean — Returns true if the size of the Stack is empty, and returns false if otherwise
import adt/stack
 
stack = stack()
 
stack.push(10)
stack.push(12)
stack.push(8)
 
while !stack.isempty()
    writeln(stack.pop())
endwhile