Posted By

traeregan on 07/05/09


Tagged

table array inarray intable


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


in_table / in_array


 / Published in: Lua
 

URL: http://luanet.net/lua/in_table

  1. function in_table ( e, t )
  2. for _,v in pairs(t) do
  3. if (v==e) then return true end
  4. end
  5. return false
  6. end

Report this snippet  

You need to login to post a comment.