Data structure allowing for the insertion and removal of
elements in a FIFO manner in O(1)
time.
new
Queue(initials?: Iterable<T>)
Benji's personal standard library. Collection of tools for manipulating strings, async iterables, shell scripting, and common data structures.
Data structure allowing for the insertion and removal of
elements in a FIFO manner in O(1)
time.
Queue(initials?: Iterable<T>)
Add Package
deno add jsr:@mindfulminun/pear
Import symbol
import { Queue } from "@mindfulminun/pear/tools/structures";
---- OR ----
Import directly with a jsr specifier
import { Queue } from "jsr:@mindfulminun/pear/tools/structures";
Add Package
npx jsr add @mindfulminun/pear
Import symbol
import { Queue } from "@mindfulminun/pear/tools/structures";
Add Package
yarn dlx jsr add @mindfulminun/pear
Import symbol
import { Queue } from "@mindfulminun/pear/tools/structures";
Add Package
pnpm dlx jsr add @mindfulminun/pear
Import symbol
import { Queue } from "@mindfulminun/pear/tools/structures";
Add Package
bunx jsr add @mindfulminun/pear
Import symbol
import { Queue } from "@mindfulminun/pear/tools/structures";