1.0.5 • Published 5 years ago

@mrnkr/simple-queue v1.0.5

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

simple-queue

Introduction

The smallest possible implementation of a queue. Need simplicity? Here it is. 100% code coverage in tests, all alternatives I could think of are taken into consideration as well. Hence, it is as robust as it can be... (that statement may backfire, be gentle 😅)

Quick start

The specification is the following:

export interface Queue<T> {

  enqueue(val: T): void;
  next(): T | undefined;

  length: number;

}

All methods do exactly what they are meant to do in the provided implementation (QueueImpl). You may reimplement this interface, extend it, do as you wish, really.

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago