Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/charliewilco/iterable-lists
- Owner: charliewilco
- License: unlicense
- Created: 2021-07-17T18:39:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-31T01:08:59.000Z (about 2 years ago)
- Last Synced: 2024-09-13T13:23:44.842Z (2 months ago)
- Language: TypeScript
- Size: 193 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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"
```