Women in Technology

Hear us Roar



Article:
  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)
evens(range(1,11))