Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .

Basic Data Types
Some Primitive Functions
Changing Variable Values
More Functions and Predicates
Setf
Exercises
Defining Lisp functions
Defining Functions: Defun
Local and Global Variables
Using an Editor
Using Your Own Definitions in New Functions
Functions with Extended Bodies
Conditional Control
More Predicates and Functions
Recursion and Iteration
Recursive Definitions
Iteration Using Dotimes
When To Use Recursion/When To Use Iteration
Tail Recursion
Timing Function Calls
Programming Techniques
Recursion on Simple Lists
Recursion on Nested Lists and Expressions
Recursion on Numbers
Ensuring Proper Termination
Abstraction
Summary of Rules
Simple Data Structures in Lisp
Association Lists
Property Lists
Arrays, Vectors, and Strings
Defstruct
Exercises
Input and Output
Basic Printing
Nicer Output Using Format
Input and Output to Files
Converting Strings to Lists
Functions, Lambda Expressions, and Macros
Eval
Lambda Expressions
Funcall
Apply
Mapcar
Backquote and Commas
Defmacro
Appendix: Selected Lisp primitives
* (FUNCTION)
+ (FUNCTION)
- (FUNCTION)
1+, 1- (FUNCTIONS)
= (PREDICATE)
<, > , <=, >= (PREDICATES)
and (MACRO)
append (FUNCTION)
apply (FUNCTION)
atom (PREDICATE)
butlast (FUNCTION)
car (FUNCTION)
cdr (Function)
cond (MACRO)
cons (FUNCTION)
defun (MACRO)
do (SPECIAL FORM)
documentation (FUNCTION)
eql, equal (PREDICATES)
eval (FUNCTION)
evenp, oddp (PREDICATES)
first (FUNCTION)
if (SPECIAL FORM)
length (FUNCTION)
let (SPECIAL FORM)
list (FUNCTION)
listp (PREDICATE)
mapcar (FUNCTION)
max, min (FUNCTIONS)
member (FUNCTION)
not (PREDICATE)
nth (FUNCTION)
nthcdr (FUNCTION)
null (PREDICATE)
numberp (PREDICATE)
or (MACRO)
rest (FUNCTION)
reverse (FUNCTION)
second, third, etc. (FUNCTIONS)
setf (MACRO)
symbolp (PREDICATE)
y-or-n-p, yes-or-no-p (PREDICATES)
0 of .
Results for:
P. 1
Lisp Primer

# Lisp Primer

Ratings: (0)|Views: 126 |Likes:

See more
See less

09/26/2012

pdf

text

original