ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  An Introduction to Haskell, Part 1: Why Haskell
Subject:   List comprehension in python
Date:   2007-05-24 07:52:54
From:   llimllib
Response to: List comprehension in python

Or, to ape the Haskell functional application:

from functools import partial 
def even(n): return n%2 == 0

evens = partial(filter, even)