lisp: List-processing à la SRFI-1

Share:

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.

Author
Peter Danenberg <pcd@roxygen.org>
Date of publication
None
Maintainer
Peter Danenberg <pcd@roxygen.org>
License
GPL (>= 2)
Version
0.1

View on R-Forge

Man pages

caar
Composite car/cdr...
cadar
Composite car/cdr...
caddr
Composite car/cdr...
cadr
Composite car/cdr...
car
First element of a list...
cdddr
Composite car/cdr...
cddr
Composite car/cdr...
cdr
Return elements after the first of a list.
cdrs
Try to get the cdrs; otherwise, return nil.
for.each
Apply f to the successive elements of .
is.even
Is a number even?
is.nil
Whether a list is empty.
is.odd
Is a number odd?
nil
The empty list...
pair.fold.right
pair-fold-right from SRFI-1.
pairwise
Combine a list into pairwise elements; lists should...
zip
Zip n lists together into tuplets of...
zip.c
Zip using c.
zip.list
Zip using list.

Files in this package

lisp
lisp/NAMESPACE
lisp/package.R
lisp/R
lisp/R/list.R
lisp/tests
lisp/tests/run.R
lisp/tests/lisp
lisp/tests/lisp/tests.R
lisp/TODO
lisp/DESCRIPTION
lisp/man
lisp/man/pair.fold.right.Rd
lisp/man/zip.list.Rd
lisp/man/zip.c.Rd
lisp/man/cdddr.Rd
lisp/man/caar.Rd
lisp/man/is.even.Rd
lisp/man/cdrs.Rd
lisp/man/caddr.Rd
lisp/man/is.nil.Rd
lisp/man/car.Rd
lisp/man/cddr.Rd
lisp/man/nil.Rd
lisp/man/cadr.Rd
lisp/man/pairwise.Rd
lisp/man/for.each.Rd
lisp/man/cdr.Rd
lisp/man/zip.Rd
lisp/man/cadar.Rd
lisp/man/is.odd.Rd