Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
11
Task/Loops-While/Racket/loops-while-2.rkt
Normal file
11
Task/Loops-While/Racket/loops-while-2.rkt
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#lang racket
|
||||
(define-syntax-rule (while condition body ...)
|
||||
(let loop ()
|
||||
(when condition
|
||||
body ...
|
||||
(loop))))
|
||||
|
||||
(define n 0)
|
||||
(while (< n 10)
|
||||
(displayln n)
|
||||
(set! n (add1 n)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue