Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

intrusive-linked-list

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intrusive-linked-list

Intrusively linked list library for TypeScript.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

intrusive-linked-list

A library for supporting intrusively linked lists in TypeScript.

Example

class MyNodeClass implements ListEmbeddable<MyNodeClass> {
    value:Number;
    next:ListEmbeddable<MyNodeClass>;
    prev:ListEmbeddable<MyNodeClass>;
};

function createNodeWithValue(value:Number) {
    return {value, next:null, prev:null};
}

var list = createList<MyNodeClass>();
list.add(createNodeWithValue(1));
list.add(createNodeWithValue(2));
list.add(createNodeWithValue(9));
list.add(createNodeWithValue(-13));
for(var i = list.front(); i != list.front().prev; i = i.next) {
    console.log((i as MyNodeClass).value);
}

Release Notes

1.0.0

Initial release.

Keywords

FAQs

Package last updated on 13 Dec 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc