DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR LUA
how to get last element of array in lua
local arr = {1,2,3,4,5,6,7,8,9,10} for i,v in pairs(arr) do last = #arr - 0 end print(last)
PREVIOUS
NEXT
Tagged:
#element
#array
#lua
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit