(list expression ...)
Make it a list.
This function creates a list from the expressions specified. You may also create the list literally by using the ' (quote) function, as shown in the last example below. Rather than use elements already defined as a list, you may need to create your own list. This list will become a variable, with its values preceded by the command list.
Examples
Code | Returns |
---|---|
(setq b (list 1 2)) | (1 2) |
(setq c (list "string1" "string2")) | ("string1" "string2") |
(setq a (list (car b) (car c))) | (1 "string2") |
(setq d '(1 2 "buckle my shoe")) | (1 2 "buckle my shoe") |