loop  ( -- )

published: 8 January 2022 / updated 24 November 2023

Lire cette page en français

 

vocabulary: forth

Add one to the loop index. If the loop index is then equal to the loop limit, discard the loop parameters and continue execution immediately following the loop. Otherwise continue execution at the beginning of the loop.

Example:

: ascii-chars ( -- ) 
    128 32 do 
        i emit 
    loop 
  ; 

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