Skip to content

An immutable implementation of a fixed-length queue in JavaScript

Notifications You must be signed in to change notification settings

alfondotnet/fixed-queue

Repository files navigation

@alfonsoperez/fixed-queue

npm version

A simple immutable Fixed Queue

Installation

yarn add @alfonsoperez/fixed-queue 

or

npm install @alfonsoperez/fixed-queue --save 

Usage

import{FixedQueue } from "@alfonsoperez/fixed-queue"; const queue = new FixedQueue({size: 3, initialValues: ["A", "B"] }); queue .push("C", "D") .values(); // ["B", "C", "D"] 

About

An immutable implementation of a fixed-length queue in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published