Next Previous Up Top Contents Index

5.11 The STREAMS module

peek

Open generic function

Summary

Returns the next element of a stream without advancing the stream position.

Signature

peek input-stream #key on-end-of-stream => element-or-eof 

Arguments

input-stream
An instance of <stream>.

on-end-of-stream
An instance of <object>.

Values

element-or-eof
An instance of <object>, or #f.

Library

io

Module

streams

Description

This function behaves as read-element does, but the stream position is not advanced.

See also

read-element, page 44


System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index