Learn R Programming

lisp (version 0.1)

List-processing à la SRFI-1

Description

Though SRFI-1 scopes both list-processing and higher-order programming, we'll save some list-orthogonal functions for the `functional' package; this is freely a mixture of implementation and API.

Copy Link

Version

Install

install.packages('lisp')

Monthly Downloads

12

Version

0.1

License

GPL (>= 2)

Maintainer

Last Published

January 12th, 2012

Functions in lisp (0.1)

caar

Composite car/cdr
zip.with.names

Do a less efficient zip whilst preserving names.
car

First element of a list
pairwise

Combine a list into pairwise elements; lists should be of the same length. In case of odd numbers of members, the last will be removed.
cddr

Composite car/cdr
cadr

Composite car/cdr
is.odd

Is a number odd?
is.even

Is a number even?
for.each

Apply f to the successive elements of ....
caddr

Composite car/cdr
last

Last element in a list.
is.nil

Whether a list is empty.
cdrs

Try to get the cdrs; otherwise, return nil.
zip.c

Zip using c.
cadar

Composite car/cdr
cdddr

Composite car/cdr
cdr

Return elements after the first of a list.
nil

The empty list
zip.list

Zip using list.
zip

Zip n lists together into tuplets of length n.
pair.fold.right

pair-fold-right from SRFI-1.