[patch] filter tables

2012-02-16 Thread Anurag Priyam
It seems to be a common idiom to apply a particular operation on select elements of a table. Something like: for _, i in pairs(t) do if (func1(i)) then func2(i) end end So, how about (first patch) : ---  lib/awful/util.lua.in |    9 + [...] +--- +-- For each element

Re: [patch] filter tables

2012-02-16 Thread Anurag Priyam
On Fri, Feb 17, 2012 at 4:01 AM, Anurag Priyam anurag08pri...@gmail.com wrote: [...] However, most of the times starting to iterate from the currently focused client helps, so I can iterate through Chrome instances in order starting from the one focused. I started off wanting to make this task