For Development HEAD DRAFTSearch (procedure/syntax/module):

11.77 srfi.277 - Cyclic ports

Module: srfi.277

Cyclic ports are input ports that produces infinite input, repeating the given sequence of data.

Function: open-cyclic-input-string string
Function: open-cyclic-input-bytevector bytevector

[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 - Port positioning).



For Development HEAD DRAFTSearch (procedure/syntax/module):
DRAFT