《通链参考手册》


Function INPUT-STREAM-P, OUTPUT-STREAM-P

●语法设定:

input-stream-p stream => generalized-boolean

output-stream-p stream => generalized-boolean

●参数和值:

stream---a stream.

generalized-boolean---a generalized boolean.

●详情:

input-stream-p returns true if stream is an input stream; otherwise, returns false.

output-stream-p returns true if stream is an output stream; otherwise, returns false.

●例子:

 (input-stream-p *standard-input*) =>  true
 (input-stream-p *terminal-io*) =>  true
 (input-stream-p (make-string-output-stream)) =>  false

 (output-stream-p *standard-output*) =>  true
 (output-stream-p *terminal-io*) =>  true
 (output-stream-p (make-string-input-stream "jr")) =>  false

●副作用: None.

●受制于: 无。

●例外情况:

Should signal an error of type type-error if stream is not a stream.

●更多信息: None.

●说明: 无。


◇首页 § ◎章节目录 § □内容索引 § ○符号索引 § △术语表 § ※设计草案