NAME

LISP - Perl extension for blah blah blah

SYNOPSIS

use LISP;

my $list = LISP->new(\@array);
my $lambda = LISP->new(\&function);

my $cons_cell = LISP->cons($car, $cdr);
my $list = LISP::list(@array);

DESCRIPTION

Implements Lisp-like linked-lists and functions/methods.

Methods new ([ARRAYREF|CODEREF]) If given an array reference, returns a linked list with every array reference within the given array reference also expanded into another list.

    If given a subroutine reference, blesses the reference into LISP::Lamba and
    returns the reference.

cons (CAR, CDR)
    Creates a new cons-cell and returns it.
    
list (ARRAY)
    Like the new method, but called with an array as an argument instead of an
    array reference, and is more meant to be called as a function rather than a
    method (This could change).

EXPORT

None by default.

:all
    This will export cons and list from this package, listp and nilp from
    LISP::List, and mapcar and apply from LISP::Lambda.

AUTHOR

Douglas Wilson, dwilson@gtemail.net

SEE ALSO

LISP::List, LISP::Lambda, perl(1).