Socket
Socket
Sign inDemoInstall

fdll

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fdll

Fast doubly linked lists


Version published
Weekly downloads
152
decreased by-30.91%
Maintainers
1
Install size
5.50 kB
Created
Weekly downloads
 

Readme

Source

fdll

Fast Doubly Linked List

Lists contains object with two properties: key and data. A list cannot contain two elements with same key. All operations are done in constant time. Lists have the following methods:

  • push({key: key, data: data}) adds an element next to the list head. The new length of the list is returned.
  • pop() removes the tail of the list and return {key: key, data: data}; if list is empty, null is returned.
  • unshift({key: key, data: data}) adds an element before the list tail. The new length of the list is returned.
  • shift() removes the head of the list and return {key: key, data: data}; if the list is empty, null is returned.
  • remove(key) removes the element which as the key if it exists and return {key: key, data: data}; if is does not exist, null is returned.

FAQs

Last updated on 24 Feb 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc