manual:chapter6:stack:cmd_depth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
manual:chapter6:stack:cmd_depth [2019/09/17 16:45]
jojo1973 Rewritten using new template
manual:chapter6:stack:cmd_depth [2019/10/22 14:53]
jojo1973 Fixed internal link
Line 1: Line 1:
 ==== DEPTH ==== ==== DEPTH ====
 ---- ----
-<callout color="crimson" icon="fa fa-indent" title="Stack Diagram">+<callout type="primary" color="" icon="fa fa-book" title="Synopsis"> 
 +---- 
 +Return the number of items present on the stack 
 +</callout> 
 + 
 +<callout color="green" icon="fa fa-indent" title="Stack Diagram">
 ---- ----
 ^  __Input Stack__  ^  ^  __Output Stack__  ^ ^  __Input Stack__  ^  ^  __Output Stack__  ^
-|    |  **→**  |  **I**  | +|    |  **→**  |  **I<sub>depth</sub>**  | 
-|  //Level 1//  |  ****   //Level 1//  | +|  //Level 1//  |  ////   //Level 1//  | 
  
 {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}}
  
-{{fa>times?lg&color=red}} **Support for inclusion in symbolic expressions**  |   +|**Type**| [[manual:chapter5:basics#commands|Command]]  || 
-{{fa>times?lg&color=red}} **Support for parallel list processing**  |  +|**Parallel list processing**| [[manual:chapter5:listproc#group-1commands-that-cannot-parallel-process|Group 1]]  ||  
-{{fa>times?lg&color=red}} **Affected by flags**  |  +|**Affected by flags**| None  ||
 </callout> </callout>
  
-<callout type="primary" color="" icon="fa fa-comment" title="Description">+<callout color="orangered" icon="fa fa-comment" title="Description">
 ---- ----
-Returns the number of items present on the stack before executing the command.+The ''DEPTH'' command puts on the level 1 of the stack the number of elements present on it before executing the command itself.
 </callout> </callout>
  
Line 26: Line 31:
 <callout type="info" icon="true" title="Usage"> <callout type="info" icon="true" title="Usage">
 ---- ----
-The following program: 
 <code> <code>
-  « 123 DEPTH »+3:            "This is a string" 
 +2:               { 'X' 'Y' 'Z'
 +1:                           1_m 
 +…………………………………………………………………………………… 
 +DEPTH 
 +</code> 
 +will result in 
 +<code> 
 +4:            "This is a string" 
 +3:               { 'X' 'Y' 'Z'
 +2:                           1_m 
 +1:                             3 
 +…………………………………………………………………………………… 
 </code> </code>
-will result in a stack containing ''123'' and ''1'' when executed on an empty stack.   
 </callout> </callout>
  
-<callout color="darkslategray" icon="fa fa-hand-o-right" title="Related Commands">+<callout color="darkgray" icon="fa fa-hand-o-right" title="Related Commands"> 
 +----
 {{page>manual:chapter6:stack&nofooter&noeditbtn&inline}} {{page>manual:chapter6:stack&nofooter&noeditbtn&inline}}
 </callout> </callout>
  • manual/chapter6/stack/cmd_depth.txt
  • Last modified: 2021/09/19 13:28
  • by jojo1973