Maybe we should just use the term “function call” in docs
there isn’t, but question about your use case: is the lazy field value derived from the other fields?
I have a question (maybe silly) about stream. #lang racket
(require racket/stream)
(define ones (stream-cons 1 ones))
(stream-take ones 10)
It complained > Welcome to DrRacket, version 6.12 [3m]. > Language: racket, with debugging; memory limit: 2048 MB. > . stream-take: unbound identifier in module in: stream-take > > See the documentation https://docs.racket-lang.org/reference/streams.html#%28def._%28%28lib._racket%2Fstream..rkt%29._stream-take%29%29, it has this procedure, right?
@chansey97 you are using an old version of Racket. Upgrade it and stream-take
will be available to you.
FWIW: stream-take
was added in https://github.com/racket/racket/commit/f9e6a8b61b2be24232a0499fa30425d37b9580b1 on Aug 27, 2018
Racket 6.12 that you use was released on January 2018
Probably there should be a @history
note in the documentation
@sorawee OK Thanks.
The lazy field is not dependent on other fields.
Is there a standard library function for unioning a list of sets? Or should I just go ahead and fold?
hmm I suppose I could do (apply set-union (list s0 s1 s2))
@joshibharathiramana I would just use (apply set-union ...)
like you mentioned.