Category:Stack

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Basic description for stacks)
(Made clear that Stack is a LIFO container)
 
Line 1: Line 1:
An object returned by {{LibraryFunction|util|Stack}}. The Stack works like a stack of papers: the first page you put down (push) will be the last one you remove (pop). That also means that the last page you put down, will be the first to be removed.
+
An object returned by {{LibraryFunction|util|Stack}}.
 +
 
 +
Like a Lua table, a Stack is a container. It follows the principle of LIFO (last in, first out).
 +
 
 +
The Stack works like a stack of papers: the first page you put down (push) will be the last one you remove (pop). That also means that the last page you put down, will be the first to be removed.

Latest revision as of 03:47, 26 March 2017

An object returned by util.Stack.

Like a Lua table, a Stack is a container. It follows the principle of LIFO (last in, first out).

The Stack works like a stack of papers: the first page you put down (push) will be the last one you remove (pop). That also means that the last page you put down, will be the first to be removed.

Pages in category "Stack"

The following 4 pages are in this category, out of 4 total.

Personal tools
Navigation