fixed issue in documentation of while loop
This commit is contained in:
parent
7e3639d48b
commit
aae28f68b6
2 changed files with 8 additions and 12 deletions
14
Readme.md
14
Readme.md
|
|
@ -94,17 +94,13 @@ The while loop takes N arguments. The first argument, the conditional, must eval
|
|||
```
|
||||
(while (cond) (form1)....... (formN))
|
||||
|
||||
(export iter 1)
|
||||
(while (< iter 4)
|
||||
(print (concat "current iteration: "
|
||||
(string iter)))
|
||||
(export iter
|
||||
(+ iter 1)))
|
||||
(export cond T)
|
||||
(while cond
|
||||
(print "this will only be printed once")
|
||||
(export cond F))
|
||||
|
||||
Output:
|
||||
current iteration: 1
|
||||
current iteration: 2
|
||||
current iteration: 3
|
||||
this will only be printed once
|
||||
```
|
||||
|
||||
## Comments
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue