srfi.277 - 循環ポート ¶Cyclic ports are input ports that produces infinite input, repeating the given sequence of data.
[SRFI-277]{srfi.277}
Returns an input port that produces character/octet sequence
that consists of repeating string/bytevector infinitely.
The srfi defines that open-cyclic-input-string returns a textual
port, and open-cyclic-input-bytevector returns a binary
port. Gauche does not distinguish textual/binary ports, but
be aware of it when you write portable code.
The returned input ports are positionable, that is,
you can obtain the port position and later restart from the
previously obtained position. It can be portably done with
SRFI-291 (see srfi.192 - ポート位置).