DEPTH

Puts the depth (length) of the stack on the top of the stack

Input stack:

Output stack: a

PunkinDB> "Hello, " "world!" DEPTH
2

Allocation

Allocates for the result of stack size calculation

Errors

None

Tests

depth : "Hello, " "world!" DEPTH 2 EQUAL?.

results matching ""

    No results matching ""