manpagez: man pages & more
info guile
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.5.3.3 Selectors

Scheme Procedure: 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

These are synonyms for car, cadr, caddr, ….

Scheme Procedure: car+cdr pair

Return two values, the CAR and the CDR of pair.

Scheme Procedure: take lst i
Scheme Procedure: take! lst i

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.

Scheme Procedure: drop lst i

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

Scheme Procedure: take-right lst i

Return a list containing the i last elements of lst. The return shares a common tail with lst.

Scheme Procedure: drop-right lst i
Scheme Procedure: drop-right! lst i

Return a list containing all but the i last elements of lst.

drop-right always returns a new list, even when i is zero. drop-right! may modify the structure of the argument list lst in order to produce the result.

Scheme Procedure: split-at lst i
Scheme Procedure: split-at! lst i

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.

Scheme Procedure: last lst

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


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on April 20, 2013 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.