@otterz yes and it's exactly what I want. I want to read everything available at the moment to start processing what is already came to the pipe.
There is another function, get-string-all from (ice-9 textual-ports), which looks for EOF instead and thus blocks until everything will arrive to the pipe.
@abcdw @otterz creating a very large linked-list like this would be very slow though, and the
reverse->list
function is an O(n) operation.It might be better to write to a string port instead, and then return the string when
(char-ready? port)
returns#f
.