Logo

Programming-Idioms

History of Idiom 117 > diff from v27 to v28

Edit summary for version 28 by :
New Lua implementation by user [Nepta]

Version 27

2016-03-02, 14:57:09

Version 28

2016-04-07, 09:04:21

Idiom #117 Get list size

Set n to the number of elements of list x.

Idiom #117 Get list size

Set n to the number of elements of list x.

Code
local n = #x
Doc URL
http://www.lua.org/manual/5.3/manual.html#3.4.7