@rbxts/data-structures
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Data Structures

Questions

  • Where's Queue?

Just use an array.

local Queue = {1, 2, 3}
local Popped = table.remove(Queue, 1)
  • Where's Stack?

Just use an array.

local Stack = {1, 2, 3}
local Popped = table.remove(Stack)
  • Where's LinkedList?

Just use an array.

  • Where's ArrayList?

Just use an array.

TLDR: I removed some of the more list-like data structures because it's far more efficient in Luau to use an array. You don't need to have some overcomplicated data structure to use as an array.

Readme

Keywords

none

Package Sidebar

Install

npm i @rbxts/data-structures

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

85.4 kB

Total Files

45

Last publish

Collaborators

  • howmanysmall