New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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
Package was removed
Sorry, it seems this package was removed from the registry

invlist

A node-oriented list data structure.

0.0.0
unpublished
latest
Source
npm
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

list

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