adding a simple looping example

This commit is contained in:
Danny Yoo 2012-02-28 19:23:46 -05:00
parent 1e152258f7
commit 32ff42bebe
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
4950

View File

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

View File

@ -7,6 +7,7 @@
;; type replaced with .expected.
(test "more-tests/simple.rkt")
(test "more-tests/simple-loop.rkt")
(test "more-tests/booleans.rkt")
(test "more-tests/module-scoping.rkt")
(test "more-tests/checking.rkt")