Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/charliewilco/iterable-lists

queues, stacks, etc
https://github.com/charliewilco/iterable-lists

Last synced: about 1 month ago
JSON representation

queues, stacks, etc

Awesome Lists containing this project

README

        

Iterable Lists

Uses prettier, rollup, esbuild and vite for the example.

## Install

```sh
npm install @charliewilco/iterable-lists
```

## Usage

```ts
import { Queue } from "@charliewilco/iterable-lists";

const q = new Queue();

q.add("1");
q.add("2");

q.head; // "2"

for (const value of q) {
console.log(value);
}

// "1"
// "2"
```