(elib.info)Accessing elements


Next: Removing nodes Prev: Entering elements Up: Doubly Linked List
Enter node , (file) or (file)node

2.3.3 Accessing elements of a dll
---------------------------------

`(dll-element dll node)'
     Get the element of a NODE in a doubly linked list DLL.

`(dll-first dll)'
     Return the first element on the doubly linked list DLL.  Return
     `nil' if the list is empty. The element is not removed.

`(dll-nth dll n)'
     Return the Nth node from the doubly linked list DLL.  N counts
     from zero. If DLL is not that long, `nil' is returned.  If N is
     negative, return the -(N+1)th last element.  Thus, `(dll-nth dll
     0)' returns the first node, and `(dll-nth dll -1)' returns the
     last node.

`(dll-last dll)'
     Return the last element on the doubly linked list DLL.  Return
     `nil' if the list is empty. The element is not removed.

`(dll-next dll node)'
     Return the last element on the doubly linked list DLL.  Return
     `nil' if the list is empty. The element is not removed.

`(dll-previous dll node)'
     Return the node before NODE, or `nil' if NODE is the first node.

`(dll-all dll)'
     Return all elements on the double linked list DLL as an ordinary
     list.



automatically generated by info2www version 1.2.2.9