All ready to implement property lists, not yet done.
This commit is contained in:
parent
5ee9531e6b
commit
b61e7c3e8c
16 changed files with 225 additions and 125 deletions
10
resources/mexpr/sublis.mexpr.lsp
Normal file
10
resources/mexpr/sublis.mexpr.lsp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
;; There are two different statements of SUBLIS and SUB2 in the manual, on
|
||||
;; pages 12 and 61 respectively, although they are said to be semantically
|
||||
;; equivalent; this is the version from page 12.
|
||||
|
||||
sub2[a; z] = [null[a] -> z;
|
||||
eq[caar[a]; z] -> cdar[a];
|
||||
T -> sub2[cdar[a]; z]]
|
||||
|
||||
sublis[a; y] = [atom[y] -> sub2[a; y];
|
||||
T -> cons[]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue