Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Deepcopy/Common-Lisp/deepcopy.lisp
Normal file
7
Task/Deepcopy/Common-Lisp/deepcopy.lisp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
$ clisp -q
|
||||
[1]> (setf *print-circle* t)
|
||||
T
|
||||
[2]> (let ((a (cons 1 nil))) (setf (cdr a) a)) ;; create circular list
|
||||
#1=(1 . #1#)
|
||||
[3]> (read-from-string "#1=(1 . #1#)") ;; read it from a string
|
||||
#1=(1 . #1#) ;; a similar circular list is returned
|
||||
Loading…
Add table
Add a link
Reference in a new issue