Search
 
SCRIPT & CODE EXAMPLE
 

LUA

lua in pairs

--Table is the table to iterate through
--Index is the current index
--Value is the value at the current index

for index, value in pairs(table) do

end
Comment

lua pairs

-- // Tables
local t = {"foo", "bar"}

--[[
	// Output:
	1 foo
	2 bar
--]]
for i,v in pairs(t) do
	print(i,v)
end


-- // Dictionaries
local t = {
	["A"] = "Me",
    ["B"] = "You"
}

--[[
	// Output:
	A Me
	B You
--]]
for i,v in pairs(t) do
	print(i, v)
end
Comment

PREVIOUS NEXT
Code Example
Lua :: gettable 
Lua :: lua scp 914 card script 
Lua :: init.lua set font 
Lua :: roblox player left 
Lua :: swap number in lua 
Lua :: wails compile 
Lua :: roblox studio buying robux 
Lua :: name is not a valid member of Folder roblox 
Matlab :: matlab read from txt file 
Matlab :: find duplicates in matlab arrauy 
Matlab :: matlab negation 
Matlab :: how to run a p code matlab 
Matlab :: how do i call a function inside another function in mat 
Basic :: how to add basic authentication on haproxy backend server 
Basic :: the terminal process failed to launch 
Basic :: how to dynamically change the font size of a button visual basic 
Elixir :: elixir map 
Elixir :: phoenix ecto preload 
Elixir :: elixir with else 
Scala :: scala pattern matching 
Scala :: scala reverse string 
Excel :: google sheets convert month to number 
Excel :: freeze row in excel 
Perl :: Perl (perl 5.28.1) sample 
Pascal :: while loop in pascal 
Powershell :: How to download jira attachments using curl 
Clojure :: call function in clojure 
Assembly :: MOD OPERATOR for register in arm assembly 
Assembly :: import svg in google slides 
Javascript :: jquery vslidation remove spaces from input 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =