Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sail-sail/sail_denque

Denque is a well tested, extremely fast and lightweight double-ended queue implementation with zero dependencies and includes TypeScript types.
https://github.com/sail-sail/sail_denque

Last synced: 1 day ago
JSON representation

Denque is a well tested, extremely fast and lightweight double-ended queue implementation with zero dependencies and includes TypeScript types.

Awesome Lists containing this project

README

        

# sail_denque

Denque is a well tested, extremely fast and lightweight double-ended queue implementation with zero dependencies and includes TypeScript types.

## usage
```ts
import { assert } from "https://deno.land/[email protected]/testing/asserts.ts";
import { Denque } from "https://deno.land/x/[email protected]/mod.ts";

Deno.test("compile", function() {
const denque = new Denque([ 1, 2, 3, 4 ]);
assert(denque.shift(), "1");
assert(denque.pop(), "4");
});
```