At 1240582243 time_t, koniu wrote: > I'm not 100% sure what you mean here, you didn't give an explicit > reason why it's but from what I understand you don't want the filter > function hardcoded like this. We can give possibility of supplying a > custom function like this (any better?): > http://git.mercenariesguild.net/?p=awesome.git;a=commitdiff;h=ceb8555b2ec5ce510ab18610a6e678277dcc9bef
I was thinking something like function list(filter) local ret = {} for k, v in pairs(data) do if filter(k, v) then -- filter return true, add k and v to ret ret[k] = v end end return ret end Cheers, -- Julien Danjou // ᐰ <jul...@danjou.info> http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD // When I get sad, I stop being sad and be awesome instead. True story.
signature.asc
Description: Digital signature