Depth

SUMMARY

Depth - The number of elements is pushed onto the stack.

SYNTAX

Depth();

DESCRIPTION

Stack
  1. The number of elements is pushed onto the stack.

Effect
Returns the number of elements on the stack. Since the result is pushed to the stack too, the number of stack elements is by 1 higher than the returned value.

EXAMPLES

//Stack before (4 Elements):
//"a"
//"b"
//"c"
//"d"
Depth();
//Stack afterwards (5 Elements):
//4
//"a"
//"b"
//"c"
//"d"


Syntax Notation
[aaa]
aaa is optional (zero or one occurences)
(aaa|bbb)
aaa exclusive or bbb
(aaa)*
aaa may occur indefinitely often or may be omitted
(aaa)+
aaa may occur indefinitely often but at least once
(aaa)m..n
aaa may occur from m to n times