Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sail-sail/sail_denque
- Owner: sail-sail
- Created: 2022-05-16T02:46:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-16T03:06:30.000Z (over 2 years ago)
- Last Synced: 2025-02-01T00:28:33.139Z (5 days ago)
- Language: TypeScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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");
});
```