adding port? predicate

This commit is contained in:
Alex Shinn 2010-09-17 08:11:25 +09:00
parent 6c074d686a
commit 69f3dcc3fd

View file

@ -525,6 +525,8 @@
;; I/O utils
(define (port? x) (or (input-port? x) (output-port? x)))
(define (char-ready? . o)
(not (eof-object? (peek-char (if (pair? o) (car o) (current-input-port))))))