Add an example of how to use in-indexed
This commit is contained in:
parent
ad284de366
commit
5cedca2183
|
@ -604,6 +604,11 @@ each element in the sequence.
|
|||
produced by @racket[seq], and a non-negative exact integer starting
|
||||
with @racket[0]. The elements of @racket[seq] must be
|
||||
single-valued.
|
||||
|
||||
@(examples
|
||||
#:eval sequence-evaluator
|
||||
(for ([(i ch) (in-indexed "hello")])
|
||||
(printf "The char at position ~a is: ~a\n" i ch)))
|
||||
}
|
||||
|
||||
@defproc[(in-sequences [seq sequence?] ...) sequence?]{
|
||||
|
|
Loading…
Reference in New Issue
Block a user