Dlist.Deque

Source

Summary

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

append(dlist, item)

Add an element to the end of the list

Source
first(deque)

Returns the first element in the deque or nil if the list is empty

Source
last(deque)

Returns the last element in the deque or nil if the list is empty

Source
new()

Construct a empty dlist

Source
new(list)

Construct a dlist from an existing list

Source
prepend(dlist, item)

Add an element to the beginning of the list

Source
to_list(deque)

Convert the Dlist.Deque into a List

Source