Posted By

traeregan on 07/05/09


table array inarray intable

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


in_table / in_array

 / Published in: Lua


  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.