put-char, write-char - write a character to a port
(import (rnrs)) ;R6RS
(import (rnrs io ports)) ;R6RS, put-char
(import (rnrs io simple)) ;R6RS, write-char
(import (scheme r5rs)) ;R7RS
(import (scheme base)) ;R7RS
(put-char textual-output-port char) ;R6RS
(write-char char textual-output-port)
Writes the character
is omitted, it defaults to the value returned by
Returns unspecified values.
(define (write-with-sign n)
(write-char (if (negative? n) #\- #\+))
(write (abs n)))
procedure is consistent with the reworked I/O system in R6RS. The
was kept for the simplified I/O system.
procedure exists in all RnRS reports since R2RS.
This procedure can raise exceptions with the following condition types:
- &assertion (R6RS)
The wrong number of arguments was passed or an argument was outside its domain.
The assertions described above are errors.
Implementations may signal an error, extend the procedure's
domain of definition to include such arguments,
or fail catastrophically.
appeared in R2RS. It has no direct predecessor in MacLisp, but
does exist in Common Lisp.
first appeared in R6RS.
This page is part of the
It includes materials from the RnRS documents.
More information can be found at
IEEE Scheme accidentally omitted
Markup created by unroff 1.0sc, March 04, 2023.