docs: for/stream: mention multiple values (#3147)

* docs: for/stream: mention multiple values

A minimal improvement to the for/stream docs mentioning it doesn't support multiple values per iteration.

* docs: for/stream: mention stream/values package

* docs: for/stream: remove mention of external packages

* docs: for/stream: improve spelling, fix link to multiple values
This commit is contained in:
yurkobb 2020-05-06 17:17:28 +03:00 committed by GitHub
parent ec93652cf9
commit 76d8a0ef44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1193,6 +1193,8 @@ stream, but plain lists can be used as streams, and functions such as
allows @racket[for/stream] and @racket[for*/stream] to iterate over infinite
sequences, unlike their finite counterparts.
Please note that these forms do not support returning @tech{multiple values}.
@examples[#:eval sequence-evaluator
(for/stream ([i '(1 2 3)]) (* i i))
(stream->list (for/stream ([i '(1 2 3)]) (* i i)))