-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec4d39d
commit 4d54325
Showing
21 changed files
with
200 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
function | ||
car(p) | ||
{ | ||
if ("car" in p) | ||
return p.car; | ||
else | ||
return symbol(NIL); | ||
} | ||
|
||
function | ||
cdr(p) | ||
{ | ||
if ("cdr" in p) | ||
return p.cdr; | ||
else | ||
return symbol(NIL); | ||
} | ||
|
||
function | ||
cadr(p) | ||
{ | ||
return car(cdr(p)); | ||
} | ||
|
||
function | ||
cddr(p) | ||
{ | ||
return cdr(cdr(p)); | ||
} | ||
|
||
function | ||
caadr(p) | ||
{ | ||
return car(car(cdr(p))); | ||
} | ||
|
||
function | ||
caddr(p) | ||
{ | ||
return car(cdr(cdr(p))); | ||
} | ||
|
||
function | ||
cdadr(p) | ||
{ | ||
return cdr(car(cdr(p))); | ||
} | ||
|
||
function | ||
cdddr(p) | ||
{ | ||
return cdr(cdr(cdr(p))); | ||
} | ||
|
||
function | ||
caaddr(p) | ||
{ | ||
return car(car(cdr(cdr(p)))); | ||
} | ||
|
||
function | ||
cadadr(p) | ||
{ | ||
return car(cdr(car(cdr(p)))); | ||
} | ||
|
||
function | ||
cadddr(p) | ||
{ | ||
return car(cdr(cdr(cdr(p)))); | ||
} | ||
|
||
function | ||
cddadr(p) | ||
{ | ||
return cdr(cdr(car(cdr(p)))); | ||
} | ||
|
||
function | ||
cddddr(p) | ||
{ | ||
return cdr(cdr(cdr(cdr(p)))); | ||
} | ||
|
||
function | ||
cadaddr(p) | ||
{ | ||
return car(cdr(car(cdr(cdr(p))))); | ||
} | ||
|
||
function | ||
caddddr(p) | ||
{ | ||
return car(cdr(cdr(cdr(cdr(p))))); | ||
} |
Oops, something went wrong.