MULTIPLE VALUE FUNCTIONS


XLISP-PLUS supports multiple return values (via a compilation option) as in Common Lisp. Note that most FSUBR control structure functions will pass back multiple return values, with the exceptions being PROG1 and PROG2.


BIND RETURN VALUES INTO LOCAL CONTEXT

(multiple-value-bind <varlist> <vform> [<form>...])

defined as macro in common.lsp


COLLECT VALUES AND APPLY FUNCTION

(
multiple-value-call <fun> <form> ...)

fsubr


COLLECT MULTIPLE RETURNED VALUES INTO A LIST

(
multiple-value-list <form>)

defined as macro in common.lsp


RETURN VALUES OF FIRST FORM

(
multiple-value-prog1 <form> [<form> ...])

fsubr


BIND RETURN VALUES TO VARIABLES

(
multiple-value-setq <varlist> <form>)

defined as macro in common.lsp


EXTRACT A RETURN VALUE

(
nth-value <index> <form>)

fsubr


RETURN MULTIPLE VALUES

(
values [<expr>])


RETURN MULTIPLE VALUES FROM LIST

(
values-list <list>)

defined in common.lsp


XLISP-PLUS - Version 2.1g - Tom Almy tom.almy@tek.com - 18 JUL 94
Generated with
WebMaker