(car lst)
— Grabs the first element of lst
.
(cdr lst)
— Grabs all but the first element of lst
.
(cons val lst)
— Create a new list by adding val
to the front of lst
.
(list-ref lst pos)
— Grabs the element at index pos
from lst
. Elements in lists are
indexed starting at 0, so (list-ref lst 0)
grabs the first element
of the list.
(list val_1 ... val_n)
— Create a list from the specified values.