Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

lib/list-selectors.x

Optional compound List selectors.

Primary API

FunctionSummary
List.caaaarReturns the element that caaaar selects from value.
List.caaadrReturns the element that caaadr selects from value.
List.caaarReturns the element that caaar selects from value.
List.caadarReturns the element that caadar selects from value.
List.caaddrReturns the element that caaddr selects from value.
List.caadrReturns the element that caadr selects from value.
List.cadaarReturns the element that cadaar selects from value.
List.cadadrReturns the element that cadadr selects from value.
List.cadarReturns the element that cadar selects from value.
List.caddarReturns the element that caddar selects from value.
List.cadddrReturns the element that cadddr selects from value.
List.cdaaarReturns the tail that cdaaar selects from value.
List.cdaadrReturns the tail that cdaadr selects from value.
List.cdaarReturns the tail that cdaar selects from value.
List.cdadarReturns the tail that cdadar selects from value.
List.cdaddrReturns the tail that cdaddr selects from value.
List.cdadrReturns the tail that cdadr selects from value.
List.cdarReturns the tail that cdar selects from value.
List.cddaarReturns the tail that cddaar selects from value.
List.cddadrReturns the tail that cddadr selects from value.
List.cddarReturns the tail that cddar selects from value.
List.cdddarReturns the tail that cdddar selects from value.
List.cddddrReturns the tail that cddddr selects from value.
List.cdddrReturns the tail that cdddr selects from value.
Var.caaaarReturns the element that caaaar selects from value as a List.
Var.caaadrReturns the element that caaadr selects from value as a List.
Var.caaarReturns the element that caaar selects from value as a List.
Var.caadarReturns the element that caadar selects from value as a List.
Var.caaddrReturns the element that caaddr selects from value as a List.
Var.caadrReturns the element that caadr selects from value as a List.
Var.cadaarReturns the element that cadaar selects from value as a List.
Var.cadadrReturns the element that cadadr selects from value as a List.
Var.cadarReturns the element that cadar selects from value as a List.
Var.caddarReturns the element that caddar selects from value as a List.
Var.cadddrReturns the element that cadddr selects from value as a List.
Var.cdaaarReturns the tail that cdaaar selects from value as a List.
Var.cdaadrReturns the tail that cdaadr selects from value as a List.
Var.cdaarReturns the tail that cdaar selects from value as a List.
Var.cdadarReturns the tail that cdadar selects from value as a List.
Var.cdaddrReturns the tail that cdaddr selects from value as a List.
Var.cdadrReturns the tail that cdadr selects from value as a List.
Var.cdarReturns the tail that cdar selects from value as a List.
Var.cddaarReturns the tail that cddaar selects from value as a List.
Var.cddadrReturns the tail that cddadr selects from value as a List.
Var.cddarReturns the tail that cddar selects from value as a List.
Var.cdddarReturns the tail that cdddar selects from value as a List.
Var.cddddrReturns the tail that cddddr selects from value as a List.
Var.cdddrReturns the tail that cdddr selects from value as a List.

List

List.caaaar

Var List.caaaar(List value)

Returns the element that caaaar selects from value.

Source: lib/list-selectors.x:81

List.caaadr

Var List.caaadr(List value)

Returns the element that caaadr selects from value.

Source: lib/list-selectors.x:81

List.caaar

Var List.caaar(List value)

Returns the element that caaar selects from value.

Source: lib/list-selectors.x:81

List.caadar

Var List.caadar(List value)

Returns the element that caadar selects from value.

Source: lib/list-selectors.x:81

List.caaddr

Var List.caaddr(List value)

Returns the element that caaddr selects from value.

Source: lib/list-selectors.x:81

List.caadr

Var List.caadr(List value)

Returns the element that caadr selects from value.

Source: lib/list-selectors.x:81

List.cadaar

Var List.cadaar(List value)

Returns the element that cadaar selects from value.

Source: lib/list-selectors.x:81

List.cadadr

Var List.cadadr(List value)

Returns the element that cadadr selects from value.

Source: lib/list-selectors.x:81

List.cadar

Var List.cadar(List value)

Returns the element that cadar selects from value.

Source: lib/list-selectors.x:81

List.caddar

Var List.caddar(List value)

Returns the element that caddar selects from value.

Source: lib/list-selectors.x:81

List.cadddr

Var List.cadddr(List value)

Returns the element that cadddr selects from value.

Source: lib/list-selectors.x:81

List.cdaaar

List List.cdaaar(List value)

Returns the tail that cdaaar selects from value.

Source: lib/list-selectors.x:81

List.cdaadr

List List.cdaadr(List value)

Returns the tail that cdaadr selects from value.

Source: lib/list-selectors.x:81

List.cdaar

List List.cdaar(List value)

Returns the tail that cdaar selects from value.

Source: lib/list-selectors.x:81

List.cdadar

List List.cdadar(List value)

Returns the tail that cdadar selects from value.

Source: lib/list-selectors.x:81

List.cdaddr

List List.cdaddr(List value)

Returns the tail that cdaddr selects from value.

Source: lib/list-selectors.x:81

List.cdadr

List List.cdadr(List value)

Returns the tail that cdadr selects from value.

Source: lib/list-selectors.x:81

List.cdar

List List.cdar(List value)

Returns the tail that cdar selects from value.

Source: lib/list-selectors.x:81

List.cddaar

List List.cddaar(List value)

Returns the tail that cddaar selects from value.

Source: lib/list-selectors.x:81

List.cddadr

List List.cddadr(List value)

Returns the tail that cddadr selects from value.

Source: lib/list-selectors.x:81

List.cddar

List List.cddar(List value)

Returns the tail that cddar selects from value.

Source: lib/list-selectors.x:81

List.cdddar

List List.cdddar(List value)

Returns the tail that cdddar selects from value.

Source: lib/list-selectors.x:81

List.cddddr

List List.cddddr(List value)

Returns the tail that cddddr selects from value.

Source: lib/list-selectors.x:81

List.cdddr

List List.cdddr(List value)

Returns the tail that cdddr selects from value.

Source: lib/list-selectors.x:81

Var

Var.caaaar

Var Var.caaaar(Var value)

Returns the element that caaaar selects from value as a List.

Source: lib/list-selectors.x:81

Var.caaadr

Var Var.caaadr(Var value)

Returns the element that caaadr selects from value as a List.

Source: lib/list-selectors.x:81

Var.caaar

Var Var.caaar(Var value)

Returns the element that caaar selects from value as a List.

Source: lib/list-selectors.x:81

Var.caadar

Var Var.caadar(Var value)

Returns the element that caadar selects from value as a List.

Source: lib/list-selectors.x:81

Var.caaddr

Var Var.caaddr(Var value)

Returns the element that caaddr selects from value as a List.

Source: lib/list-selectors.x:81

Var.caadr

Var Var.caadr(Var value)

Returns the element that caadr selects from value as a List.

Source: lib/list-selectors.x:81

Var.cadaar

Var Var.cadaar(Var value)

Returns the element that cadaar selects from value as a List.

Source: lib/list-selectors.x:81

Var.cadadr

Var Var.cadadr(Var value)

Returns the element that cadadr selects from value as a List.

Source: lib/list-selectors.x:81

Var.cadar

Var Var.cadar(Var value)

Returns the element that cadar selects from value as a List.

Source: lib/list-selectors.x:81

Var.caddar

Var Var.caddar(Var value)

Returns the element that caddar selects from value as a List.

Source: lib/list-selectors.x:81

Var.cadddr

Var Var.cadddr(Var value)

Returns the element that cadddr selects from value as a List.

Source: lib/list-selectors.x:81

Var.cdaaar

List Var.cdaaar(Var value)

Returns the tail that cdaaar selects from value as a List.

Source: lib/list-selectors.x:81

Var.cdaadr

List Var.cdaadr(Var value)

Returns the tail that cdaadr selects from value as a List.

Source: lib/list-selectors.x:81

Var.cdaar

List Var.cdaar(Var value)

Returns the tail that cdaar selects from value as a List.

Source: lib/list-selectors.x:81

Var.cdadar

List Var.cdadar(Var value)

Returns the tail that cdadar selects from value as a List.

Source: lib/list-selectors.x:81

Var.cdaddr

List Var.cdaddr(Var value)

Returns the tail that cdaddr selects from value as a List.

Source: lib/list-selectors.x:81

Var.cdadr

List Var.cdadr(Var value)

Returns the tail that cdadr selects from value as a List.

Source: lib/list-selectors.x:81

Var.cdar

List Var.cdar(Var value)

Returns the tail that cdar selects from value as a List.

Source: lib/list-selectors.x:81

Var.cddaar

List Var.cddaar(Var value)

Returns the tail that cddaar selects from value as a List.

Source: lib/list-selectors.x:81

Var.cddadr

List Var.cddadr(Var value)

Returns the tail that cddadr selects from value as a List.

Source: lib/list-selectors.x:81

Var.cddar

List Var.cddar(Var value)

Returns the tail that cddar selects from value as a List.

Source: lib/list-selectors.x:81

Var.cdddar

List Var.cdddar(Var value)

Returns the tail that cdddar selects from value as a List.

Source: lib/list-selectors.x:81

Var.cddddr

List Var.cddddr(Var value)

Returns the tail that cddddr selects from value as a List.

Source: lib/list-selectors.x:81

Var.cdddr

List Var.cdddr(Var value)

Returns the tail that cdddr selects from value as a List.

Source: lib/list-selectors.x:81

Design notes

The prelude keeps car, cdr, caar, cadr, cddr, and caddr. Include this module for the remaining Common Lisp selector spellings through depth 4. Names read from right to left: a applies car and d applies cdr. Every step is nil-safe, and selected tails share their canonical List structure.

Tests and examples

make verify (unittest/test-list.x).