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

invlist

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

invlist

A node-oriented list data structure.

  • 0.0.0
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Circular inverse list

CI

A node-oriented list data structure.

Maintenance

This repository is maintained on the following source repository.

https://github.com/falsandtru/spica

API

export class List<T> {
  readonly length: number {
  head: Node<T> | undefined;
  readonly tail: Node<T> | undefined;
  readonly last: Node<T> | undefined;
  clear(): void;
  unshift(value: T): Node<T>;
  unshiftRotationally(value: T): Node<T>;
  shift(): T | undefined;
  push(value: T): Node<T>;
  pushRotationally(value: T): Node<T>;
  pop(): T | undefined;
  [Symbol.iterator](): Iterator<T, undefined, undefined>;
}

export interface Node<T> {
  value: T;
  next?: Node<T>;
  prev?: Node<T>;
  readonly list: List<T> = next ? next.list : new List();
  delete(): T;
  insertBefore(value: T): Node<T>;
  insertAfter(value: T): Node<T>;
  move(before: Node<T> | undefined): boolean;
  moveToHead(): void;
  moveToLast(): void;
  swap(node: Node<T>): boolean;
}

Keywords

FAQs

Package last updated on 14 Mar 2021

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