pmt: Lists

pmt.map(pmt::pmt_t (*)(pmt::pmt_t const &) proc, swig_int_ptr list) → swig_int_ptr

Apply element-wise to the elements of list and returns a list of the results, in order.

must be a list. The dynamic order in which is applied to the elements of is unspecified.

pmt.reverse(swig_int_ptr list) → swig_int_ptr

reverse .

must be a proper list.

pmt.reverse_x(swig_int_ptr list) → swig_int_ptr

destructively reverse .

must be a proper list.

pmt.acons(swig_int_ptr x, swig_int_ptr y, swig_int_ptr a) → swig_int_ptr

(acons x y a) == (cons (cons x y) a)

pmt.nth(size_t n, swig_int_ptr list) → swig_int_ptr
locates element of list where the car is the ‘zeroth’ element.
pmt.nthcdr(size_t n, swig_int_ptr list) → swig_int_ptr

returns the tail of that would be obtained by calling cdr times in succession.

pmt.memq(swig_int_ptr obj, swig_int_ptr list) → swig_int_ptr

Return the first sublist of whose car is . If does not occur in , then #f is returned. pmt::memq use pmt::eq to compare with the elements of .

pmt.memv(swig_int_ptr obj, swig_int_ptr list) → swig_int_ptr

Return the first sublist of whose car is . If does not occur in , then #f is returned. pmt::memv use pmt::eqv to compare with the elements of .

pmt.member(swig_int_ptr obj, swig_int_ptr list) → swig_int_ptr

Return the first sublist of whose car is . If does not occur in , then #f is returned. pmt::member use pmt::equal to compare with the elements of .

pmt.subsetp(swig_int_ptr list1, swig_int_ptr list2) → bool

Return true if every element of appears in , and false otherwise. Comparisons are done with pmt::eqv.

pmt.list1(swig_int_ptr x1) → swig_int_ptr

Return a list of length 1 containing .

pmt.list2(swig_int_ptr x1, swig_int_ptr x2) → swig_int_ptr

Return a list of length 2 containing , .

pmt.list3(swig_int_ptr x1, swig_int_ptr x2, swig_int_ptr x3) → swig_int_ptr

Return a list of length 3 containing , , .

pmt.list4(swig_int_ptr x1, swig_int_ptr x2, swig_int_ptr x3, swig_int_ptr x4) → swig_int_ptr

Return a list of length 4 containing , , , .

pmt.list5(swig_int_ptr x1, swig_int_ptr x2, swig_int_ptr x3, swig_int_ptr x4, swig_int_ptr x5) → swig_int_ptr

Return a list of length 5 containing , , , , .

pmt.list6(swig_int_ptr x1, swig_int_ptr x2, swig_int_ptr x3, swig_int_ptr x4, swig_int_ptr x5, swig_int_ptr x6) → swig_int_ptr

Return a list of length 6 containing , , , , , .

pmt.list_add(swig_int_ptr list, swig_int_ptr item) → swig_int_ptr

Return with added to it.

pmt.list_rm(swig_int_ptr list, swig_int_ptr item) → swig_int_ptr

Return with removed from it.

pmt.list_has(swig_int_ptr list, swig_int_ptr item) → bool

Return bool of contains .

Previous topic

pmt: Dictionary

Next topic

pmt: Pairs

This Page