in-range insteda of range in doc
svn: r6330
This commit is contained in:
parent
4074eb593a
commit
e68b1dbe9d
|
@ -153,7 +153,7 @@ in Haskell, Ruby, Python, and other languages. One advantage over
|
||||||
For example, @scheme[list-for] can iterate over a range of numbers:
|
For example, @scheme[list-for] can iterate over a range of numbers:
|
||||||
|
|
||||||
@interaction[
|
@interaction[
|
||||||
(list-for ([i (range 0 10)])
|
(list-for ([i (in-range 0 10)])
|
||||||
i)
|
i)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ numbers in parallel:
|
||||||
|
|
||||||
@interaction[
|
@interaction[
|
||||||
(list-for ([s (list "a" "b" "c")]
|
(list-for ([s (list "a" "b" "c")]
|
||||||
[n (range 0 3)])
|
[n (in-range 0 3)])
|
||||||
(if (= n 2)
|
(if (= n 2)
|
||||||
"oops!"
|
"oops!"
|
||||||
s))
|
s))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user