mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
fixes forth typo
changes util to until
This commit is contained in:
parent
0d0c495c70
commit
b1e4e89b84
@ -117,7 +117,7 @@ one-to-12 \ 0 1 2 3 4 5 6 7 8 9 10 11 12 ok
|
|||||||
: threes ( n n -- ) ?do i . 3 +loop ; \ ok
|
: threes ( n n -- ) ?do i . 3 +loop ; \ ok
|
||||||
15 0 threes \ 0 3 6 9 12 ok
|
15 0 threes \ 0 3 6 9 12 ok
|
||||||
|
|
||||||
\ Indefinite loops with `begin` <stuff to do> <flag> `unil`:
|
\ Indefinite loops with `begin` <stuff to do> <flag> `until`:
|
||||||
: death ( -- ) begin ." Are we there yet?" 0 until ; \ ok
|
: death ( -- ) begin ." Are we there yet?" 0 until ; \ ok
|
||||||
|
|
||||||
\ ---------------------------- Variables and Memory ----------------------------
|
\ ---------------------------- Variables and Memory ----------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user