CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
11
Task/Deepcopy/PicoLisp/deepcopy-4.l
Normal file
11
Task/Deepcopy/PicoLisp/deepcopy-4.l
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(de deepCopy (X)
|
||||
(let Mark NIL
|
||||
(recur (X)
|
||||
(cond
|
||||
((atom X) X)
|
||||
((asoq X Mark) (cdr @))
|
||||
(T
|
||||
(prog1 (cons)
|
||||
(push 'Mark (cons X @))
|
||||
(set @ (recurse (car X)))
|
||||
(con @ (recurse (cdr X))) ) ) ) ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue