0.1.1 • Published 10 months ago

@rbxts/minheap v0.1.1

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
10 months ago

minheap

Simple and performant minheap implementation for Roblox.

Usage

import MinHeap from "@rbxts/minheap";

const minheap = new MinHeap();
minheap.push("Hello!", 25); // push "Hello!" with a priority of 25

print(minheap.size()); // returns 1, as there is only 1 element inside the heap
print(minheap.pop()); // pops the element with the lowest priority
print(minheap.pop()); // returns nil, no elements left
0.1.1

10 months ago

0.1.0

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago