Open generic function
Sets the position of a stream.
stream-position-setter position positionable-stream
=> new-position
<position-type>.
An instance of <positionable-stream>.
<stream-position>, or an instance of <integer>.
io
streams
Changes the stream's position for reading or writing to position.
When it is an integer, if it is less than zero or greater than positionable-stream.stream-size this function signals an error. For file streams, a <stream-position-error> is signalled. For other types of stream, the error signalled is <simple-error>.
When position is a <stream-position>, if it is invalid for some reason, this function signals an error. Streams are permitted to restrict the position to being a member of the set of values previously returned by calls to stream-position on the same stream.
The position may also be #"start", meaning that the stream should be positioned at its start, or #"end", meaning that the stream should be positioned at its end.
Note: You cannot use stream-position-setter to set the position past the current last element of the stream: use adjust-stream-position instead.