deleteFromStack (thisStack, thisElement);
deleteAllFromStack (thisStack, thisElement);
These functions remove instances of thisElement from thisStack. The standard SLUDGE equality test is performed on each element of the stack and the value of thisElement - if they are the same, the element is removed from the stack. The deleteFromStack function will stop after finding and removing one match; deleteAllFromStack will remove all instances of thisElement which are found.
The command returns the number of elements removed from the stack.
The Multi-Purpose Stack / Array / Queue Type
SLUDGE and this SLUDGE documentation are copyright Hungry Software and contributors 2000-2012