/ Published in: Lua
URL: http://luanet.net/lua/in_table
Expand |
Embed | Plain Text
function in_table ( e, t ) for _,v in pairs(t) do if (v==e) then return true end end return false end
You need to login to post a comment.
traeregan on 07/05/09
1 person have marked this snippet as a favorite
URL: http://luanet.net/lua/in_table
function in_table ( e, t ) for _,v in pairs(t) do if (v==e) then return true end end return false end
You need to login to post a comment.