News for hackers. Stuff that matters.
Re:Ladies, look at your code. Now back to mine. by didip on Saturday August 28, 2010 @04:34PM (#1642349)
Joining the club, in Python:

[e for e in employees if e.isPartTime()]

You can even push it further:

[e for e in employees if e.isPartTime() or e.lazy() or e.havePassiveIncomeAlready()]

and further:

[e for e in employees if e.isPartTime() or e.lazy() or e.havePassiveIncomeAlready() or e in [exec for exec in BoardofDirector.all() if exec.haveTooManyPortfolio()]]

Above is your friendly neighborhood List Comprehension available since Jython 2.0

There are no comments on this comment yet.