Add an example of how to use in-indexed

This commit is contained in:
Jack Firth 2020-12-04 18:16:58 -08:00 committed by Matthew Flatt
parent ad284de366
commit 5cedca2183

View File

@ -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?]{