LIST

Syntax

LIST word1 or list1 word2 or list2

(LIST word1 or list1 word2 or list2 word3 or list3 . . .)

(LIST word or list)

Explanation

LIST outputs a list composed of its inputs. The inputs to LIST can be either words or lists. If the inputs to LIST are themselves lists, LIST preserves them as lists.

LIST expects two inputs, but can accept more if it and all its inputs are enclosed in parentheses.

See also FPUT, LPUT, and SENTENCE.

Examples

? LIST "NORTH "CAROLINA

Result: [NORTH CAROLINA]

? LIST "DECEMBER 25

Result: [DECEMBER 25]

? LIST [TO BE] [OR NOT TO BE]

Result: TO BE] [OR NOT TO BE

? (LIST "JULY 4 [INDEPENDENCE DAY])

Result: [JULY 4 [INDEPENDENCE DAY]]

?