Open generic function
Finds the number of elements in a stream.
stream-size positionable-stream => size
An instance of <positionable-stream>.
<integer>, or #f.
io
streams
Returns the number of elements in positionable-stream.
For input streams, this is the number of elements that were available when the stream was created. It is unaffected by any read operations that might have been performed on the stream.
For output and input-output streams, this is the number of elements that were available when the stream was created (just as with input streams), added to the number of elements written past the end of the stream (regardless of any repositioning operations).
It is assumed that:
In such situations, the behavior of stream-size is undefined.