import { List } from "https://deno.land/x/easyts@0.1.3/container/list.ts";
Doubly linked list. Refer to the golang standard library implementation
Properties
sentinel list element, only root, root.prev, and root.next are used
Methods
insert inserts e after at, increments length
move moves e to next to at and returns e.
remove removes e from its list, decrements length
returns the last element of list l or nil if the list is empty.
clear the list
Create a full copy of the container
returns the first element of list l or undefined if the list is empty.
inserts a new element e with value v immediately after mark and returns e.
inserts a new element e with value v immediately before mark and returns e.
moves element e to its new position after mark.
moves element e to its new position before mark.
moves element e to the back of list.
moves element e to the front of list.
If the list is not empty delete the element at the back
If the list is not empty delete the element at the back
If the list is not empty delete the element at the front
If the list is not empty delete the element at the front
inserts a new element e with value v at the back of list and returns e.
inserts a copy of another container at the back of list.
inserts a new element e with value v at the front of list and returns e.
inserts a copy of another container at the front of list l.
remove e from list if e is an element of list.