Skip to main content
Module

x/easyts/container/mod.ts

js library written with ts, use select and chan like golang in js.
Latest
import * as easyts from "https://deno.land/x/easyts@0.1.2/container/mod.ts";

Classes

The base class of the container implements some common methods for the container

Doubly linked list. Refer to the golang standard library implementation

linked list element

A queue implemented using fixed-length arrays

Functions

Fix re-establishes the heap ordering after the element at index i has changed its value.

Initialize array to heap

Pop removes and returns the minimum element (according to cf or <) from the heap.

Push pushes the element x onto the heap.

Remove removes and returns the element at index i from the heap.

Interfaces

container interface

Container Creation Options