| list(3scm) | Scheme Programmer's Manual | list(3scm) |
NAME
list - create a list from the arguments
LIBRARY
(import (rnrs)) ;R6RS (import (rnrs base)) ;R6RS (import (scheme r5rs)) ;R7RS (import (scheme base)) ;R7RS
SYNOPSIS
(list obj ...)
DESCRIPTION
Returns a newly allocated list of its arguments.
RETURN VALUES
Returns a single value; a list.
EXAMPLES
(list 'a (+ 3 4) 'c) => (a 7 c) (list) => ()
COMPATIBILITY
Except for out of memory situations, this procedure works the same everywhere.
ERRORS
This procedure can raise exceptions with the following condition types:
- &implementation-restriction (R6RS)
- There is not enough free memory to hold the new pairs. (Not all implementations raise this exception, the majority just crash.)
- R7RS
- Implementations may signal an error during out of memory conditions, or fail catastrophically.
SEE ALSO
STANDARDS
R4RS, IEEE Scheme, R5RS, R6RS, R7RS
HISTORY
The list function first appeared in LISP 1.5 (1962).
AUTHORS
This page is part of the scheme-manpages project. It includes materials from the RnRS documents. More information can be found at https://weinholt.se/scheme/manpages/.
| 2023-03-26 |