lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Sorry, I am still very weak and in terminology does not accustomed
there, ( "a" "b" "c") set of values with numeric keys, but not set
Key empty values.

The effects of Python ...   :-(

I need quick verification function that is the existence of values in the table:
is_value(table,value)->boolean

Now I use a full select:
function is_value(t,v)
   for _,tv in pairs(t) do
       if  tv==v then return true end
   end
   return false
end

P.S. I get lua-l by mail, and yet do not know how to answer your answer to my question and save threads. Topics will try to keep.

Thanks.