You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The `racket' language does not seem to have a type for this identifier; for stream->list #970
If you got an error message, please include it here.
> (stream->list (in-range 0 3))
; readline-input:14:1: Type Checker: missing type for identifier;
; The `racket' language does not seem to have a type for this identifier;
; please file a bug report identifier: stream->list
; from module: (lib typed/racket)
; in: stream->list
This stopgap won't work for a usecase I have in mind, since (stream? empty-sequence) returns #f and I'm typing something that relies on racket/stream. Just a note.
Why wouldn't sequence->list work? All streams are sequences, right? So (stream? empty-sequence) shouldn't be necessary. (sequence? empty-stream) would be necessary instead, and that's fine because it's true.
(we actually talked through this on discord. I'm just writing this here so others aren't confused)
The problem was defining a type for a function that takes a stream as an argument. Using the Sequenceof type should be sufficient as a workaround in the short-term.
Activity
jackfirth commentedon Sep 10, 2020
In the meantime, you can use
sequence->list.Lazerbeak12345 commentedon Jan 26, 2023
This stopgap won't work for a usecase I have in mind, since
(stream? empty-sequence)returns#fand I'm typing something that relies onracket/stream. Just a note.AlexKnauth commentedon Feb 2, 2023
Why wouldn't
sequence->listwork? All streams are sequences, right? So(stream? empty-sequence)shouldn't be necessary.(sequence? empty-stream)would be necessary instead, and that's fine because it's true.Lazerbeak12345 commentedon Feb 2, 2023
(we actually talked through this on discord. I'm just writing this here so others aren't confused)
The problem was defining a type for a function that takes a stream as an argument. Using the
Sequenceoftype should be sufficient as a workaround in the short-term.