Dlist.Deque
SourceSummary↑
append(dlist, item) | Add an element to the end of the list |
first(deque) | Returns the first element in the deque or nil if the list is empty |
last(deque) | Returns the last element in the deque or nil if the list is empty |
new() | Construct a empty dlist |
new(list) | Construct a dlist from an existing list |
prepend(dlist, item) | Add an element to the beginning of the list |
to_list(deque) | Convert the Dlist.Deque into a List |
Functions
Add an element to the end of the list
Returns the first element in the deque or nil if the list is empty
Returns the last element in the deque or nil if the list is empty
Construct a empty dlist
Construct a dlist from an existing list
Add an element to the beginning of the list
Convert the Dlist.Deque into a List