pmt: Pairs

pmt.is_pair(pmt_t obj) → bool

Return true if is a pair, else false.

pmt.cons(pmt_t x, pmt_t y) → pmt_t

Return a newly allocated pair whose car is and whose cdr is .

pmt.car(pmt_t pair) → pmt_t

If is a pair, return the car of the , otherwise raise wrong_type.

pmt.cdr(pmt_t pair) → pmt_t

If is a pair, return the cdr of the , otherwise raise wrong_type.

pmt.set_car(pmt_t pair, pmt_t value)

Stores in the car field of .

pmt.set_cdr(pmt_t pair, pmt_t value)

Stores in the cdr field of .

pmt.caar(pmt_t pair) → pmt_t
pmt.cadddr(pmt_t pair) → pmt_t
pmt.caddr(pmt_t pair) → pmt_t
pmt.cadr(pmt_t pair) → pmt_t
pmt.cdar(pmt_t pair) → pmt_t
pmt.cddr(pmt_t pair) → pmt_t

Previous topic

pmt: Lists

Next topic

pmt: Symbols

This Page