From 386d3f4e1f5a4d02341fc9977592d2f6ba46542b Mon Sep 17 00:00:00 2001 From: Jon Rafkind Date: Tue, 13 Sep 2011 12:15:31 -0600 Subject: [PATCH] [honu] add example of for form for iterating over lists --- collects/tests/honu/for.honu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/collects/tests/honu/for.honu b/collects/tests/honu/for.honu index fba834a9a8..9ae936ca86 100644 --- a/collects/tests/honu/for.honu +++ b/collects/tests/honu/for.honu @@ -7,3 +7,7 @@ for x = 1 to 10 do { var y = x + 1; printf("x ~a y ~a\n", x, y) } + +for x in [1, 2, 3] do { + printf("x ~a\n", x); +}