(define (read-all-input)
(local ((define line (bytes->list (read-bytes 4))))
(if (eof-object? line)
empty
(cons line (read-all-input)))))
(void (read-all-input))
The above code does not work because bytes-> list expects a bytes string argument of type, but is assigned #
source
to share