Table of Contents
Allegro CL Certification Program
Outline
What is a List?
CONS
Definition of a list
The Empty List
Making a List
Uses for lists
Overview of Lists
Simple List Operations
Simple List Operations cont�d
Member of a list
Set Operations
car/cdr combinations
copy-list
What about copy-list
What about copy-list cont�d
last
append
nconc
rplaca
rplacd
Pushing and Popping
SETF
push
pushnew
More on copies
We set some values
More on copies
Printing lists
List printing example
Allegro CL Certification Program
Many types of numbers
PPT Slide
fixnum
Type examples
Arithmetic operations are generic
floats
�Conversion� functions
float
Floor, round, ...
Examples
floor and related functions
Examples
Ratios
Complex numbers
Math Fns
Trig Fns
incf and decf
Digression on macroexpansion
Allegro CL Certification Program
Type functions
Some data structure types
Arrays
Array examples
Vectors
Strings
String Functions 1
String Functions 2
String Functions 3
Sequence Functions
List vs Vector pros and cons
elt
position
find
find cont�d
Search: find a subsequence match
Getting part of a sequence
Kinds of sequence operations
Sorting
remove
delete
remove-duplicates
delete-duplicates
reverse
nreverse
Allegro CL Certification Program
Streams
with-open-file example
Standardized Stream Variables
Create file streams using OPEN
File streams must be closed
Reading Lines
Read-line example
Read the text
Parse the text
Writing Lines
Reading and Writing Characters
Object Input and Output
Other Ways to Write
Binary Streams
Pathnames
Using pathnames
Using pathnames cont�d
A Word on Backslash
Make-pathname
merge-pathnames
File Operations
Directory Operation
This was the last class
|