+loop  ( n -- )

published: 15 January 2022 / updated 16 February 2022

Lire cette page en français

 

vocabulary: forth

Increment index loop with value n.

Mark the end of a loop n1 0 do ... n2 +loop.

Example:

: loopTest 
   100 0 do  
       i .  
   5 +loop  
  ; 
loopTest  \ display 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 

Legal: site web personnel sans commerce / personal site without seling