Node:SRFI-1 Selectors, Next:, Previous:SRFI-1 Predicates, Up:SRFI-1



39.3.3 Selectors

first pair Scheme Procedure
second pair Scheme Procedure
third pair Scheme Procedure
fourth pair Scheme Procedure
fifth pair Scheme Procedure
sixth pair Scheme Procedure
seventh pair Scheme Procedure
eighth pair Scheme Procedure
ninth pair Scheme Procedure
tenth pair Scheme Procedure
These are synonyms for car, cadr, caddr, ....

car+cdr pair Scheme Procedure
Return two values, the CAR and the CDR of pair.

take lst i Scheme Procedure
take! lst i Scheme Procedure
Return a list containing the first i elements of lst.

take! may modify the structure of the argument list lst in order to produce the result.

drop lst i Scheme Procedure
Return a list containing all but the first i elements of lst.

take-right lst i Scheme Procedure
Return the a list containing the i last elements of lst.

drop-right lst i Scheme Procedure
drop-right! lst i Scheme Procedure
Return the a list containing all but the i last elements of lst.

drop-right! may modify the structure of the argument list lst in order to produce the result.

split-at lst i Scheme Procedure
split-at! lst i Scheme Procedure
Return two values, a list containing the first i elements of the list lst and a list containing the remaining elements.

split-at! may modify the structure of the argument list lst in order to produce the result.

last lst Scheme Procedure
Return the last element of the non-empty, finite list lst.