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'