whalesong/tests/more-tests/simple-loop.rkt
2012-02-28 19:23:46 -05:00

8 lines
136 B
Racket

#lang planet dyoo/whalesong/base
(let myloop ([i 0] [acc 0])
(cond
[(< i 100)
(myloop (add1 i) (+ acc i))]
[else
acc]))