FP Is Dead! Long Live FP!!

Ramdas , pointed out that Guido wants to do away with Functional programming elements of Python like map,filter and lambda in Python 3000. I agree with him that [hmm.. I guess there is no other way, after all he is the BDFL :)] filters can be easily replaced by list comprehensions. He then goes on to show how, using generator expressions we can solve the same problems much more elegently.

This brings me to google goopy ,a collection of functional functions, which was released under open source licece early today @ code.google.com . Goopy implements

some(f, lst) -> true if F applied to some element of LST is true
and
every(f, lst) -> true if F applied to every element of LST is true
which are the same similar to the functionality provided by any and all.

some every

The generator expressions usage looks cleaner, more pythonic . Ah! well, it makes sense to do FP in LISP, anyway. Dr.Scheme here I come.

Article from around 2005. Exact date lost

§