Skip to content

melon.table

garryspins edited this page Feb 27, 2026 · 3 revisions

melon.table


shared link

Contains table helpers
melon

Functions

melon.table.Insert

shared link
melon.table.Insert(table, any, number?) -> number

Argument and Return information

Arguments

# Name Type Description
1 table table Table to insert into
2 any any Value to insert
3 number? number Index to insert into

Returns

# Name Type Description
1 number number Index the element was inserted into

Identical to table.insert(), except the index value is last so it can be omitted it easily

melon.table.Pop

shared link
melon.table.Pop(table) -> any?

Argument and Return information

Arguments

# Name Type Description
1 table table Table to pop off of

Returns

# Name Type Description
1 any any The popped value if we got one

Removes the last element from the table

melon.table.Top

shared link
melon.table.Top(table) -> any?

Argument and Return information

Arguments

# Name Type Description
1 table table Table to get the top value of

Returns

# Name Type Description
1 any any The value

Gets the top value of the table

Clone this wiki locally