![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
dl-doubly-linked-list-ts
Advanced tools
A doubly linked-list implementation for TypeScript.
npm install dl-doubly-linked-list-ts
tsc
Built JS files are in ./js
.
A node is a vertex in the list, implemented in the DLNode
class and has three fields:
Field | Type | Getter | Setter | Description |
---|---|---|---|---|
data | T (generic) | Yes | Yes | Data object contained in the node. |
next | `DLNode | null` | Yes | Yes |
preious | `DLNode | null` | Yes | Yes |
The doubly linked-list implementation is present in the DoublyLinkedList
class. It has three fields:
Field | Type | Getter | Setter | Description |
---|---|---|---|---|
length | number | Yes | No | Number of nodes present in the list. |
start | `DLNode | null` | Yes | Yes |
end | `DLNode | null` | Yes | Yes |
Please refer to doc/index.html
for the complete documentation and API reference. The documentation for this project was generated using Compodoc.
import { DoublyLinkedList, DLNode } from "./node_modules/dl-doubly-linked-list";
let list : DoublyLinkedList<any> = new DoublyLinkedList();
let nodes : DLNode<any>[] = [];
for(let i=0; i<10; i++) {
nodes[i] = new DLNode();
nodes[i].data = i * i;
list.insertStart(nodes[i]);
}
// Inserting new node at the end
let newNode : DLNode<any> = new DLNode();
newNode.data = 300;
list.insert( newNode, 6 );
// Deleting a node
list.delete(4);
// Get array of the nodes
let array = list.toArray();
console.log(array);
FAQs
A Typescript library for doubly linked-list implementation.
The npm package dl-doubly-linked-list-ts receives a total of 2 weekly downloads. As such, dl-doubly-linked-list-ts popularity was classified as not popular.
We found that dl-doubly-linked-list-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.