ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   5 Data and Control Flow   5.3 Dictionary of Data and Control Flow

5.3.54 values-list Function

values-list list    {element}*

Arguments and Values:
list - a list.

elements - the elements of the list.

Returns the elements of the list as multiple values2.

 (values-list nil)   < no values > 
 (values-list '(1))  1
 (values-list '(1 2))  1, 2
 (values-list '(1 2 3))  1, 2, 3

Exceptional Situations:
Should signal type-error if its argument is not a proper list.

See Also:
multiple-value-bind, multiple-value-list, multiple-values-limit, values

 (values-list list) ==(apply #'values list)

(equal x (multiple-value-list (values-list x))) returns true for all lists x.

Allegro CL Implementation Details:

Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2015 - File last updated 03-23-2015