Doubly-linked list/Element definition: Difference between revisions

Content added Content deleted
Line 651: Line 651:
With that, 'cddr' can be used to access the next, and 'cadr' to access the
With that, 'cddr' can be used to access the next, and 'cadr' to access the
previous element.
previous element.
<lang PicoLisp>
<lang PicoLisp>(de 2tail (X DLst)
(de 2tail (X DLst)
(let L (cdr DLst)
(let L (cdr DLst)
(con DLst (cons X L NIL))
(con DLst (cons X L NIL))