lua-users home
lua-l archive

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


2017-05-15 10:20 GMT+02:00 Dirk Laurie <dirk.laurie@gmail.com>:

> function linearSearch(table,element)
>   for k,v in pairs(table) do
>     if v==element then return k
>   end
> end

Oops, needs another 'end'