Skip to content
JJSax edited this page May 18, 2023 · 2 revisions

Welcome to the Tablua wiki!

This wiki will explain how to use all the modules inside Tablua.

To get started, require the folder Tablua is in.

File/folder structure in a hypothetical project
root
> assets
> > img.png
> libraries
> > Tablua
> > > (files of Tablua)
main.lua

You would require this library as such.

localTablua=require"libraries.Tablua"

We will go over how to use each module in their own Wiki pages, linked below. Here is how to easily access them all.

localTablua=require"libraries.Tablua"-- Tablua is the module that simply expands upon how lua's tables already work.localtableExtras=Tablua.Tablua-- Arrays are similar to tables, but aren't designed to hold string keys-- Great for lists you need to keep orders without any sparce indiceslocalarray=Tablua.Array()
-- Sets work like a Set in python, or other languages.localmySet=Tablua.Set()
-- Stacks work like a stack of papers. It is a first in, last out data structure.-- Think of a stack of papers. You put papers on the top, and take papers off the toplocalstack=Tablua.Stack()
-- Queues are similar to Stacks, but it works as a first in, first out method.-- Think of waiting in line at a store. First person in line gets through the line first.localqueue=Tablua.Queue()

Set Wiki Page Links to wiki pages will go here..... either I'm still working on it or more likely I forget to get to it. Whoops!

Clone this wiki locally