Collin Winter's functional module seems to be dead (no updates since 2006, and the homepage at http://oakwinter.com/code/functional/ is long gone), and does not work right with Python 3.x or even completely with 2.7 (despite the 2.7 docs having a link to the dead homepage).
This is almost a trivial port using 2to3, but the test suite needed some tweaking, so it's been split into two suites: tests should run on 2.3-2.6, tests3 on 2.6+ (including 3.x).
functional provides Python users with numerous tools common in functional programming, such as foldl, foldr, flip, as well as mechanisms for partial function application and function composition. functional also includes sane versions of the Python builtins map() and filter(), written without the weird semantics of the builtin versions.
Directly from PyPI:
Not yet...
Via pip:
pip install git+https://github.com/abarnert/functional.git
From source:
- Untar the .tar.gz file
- cd into the resulting directory
- python setup.py install
From a Python egg:
Not yet...
For now, refer to the old website via the Wayback Machine, at:
http://web.archive.org/web/20101018142225/http://oakwinter.com/code/functional/
The initial commit of this project is an exact copy of the last version of Collin Winter's module, extracted from PyPI and committed to github with no changes except the addition of a generic README.md file.
The license for version 0.7.0 is, according to the PKG-INFO, the Python Software Foundation License.
The original documentation says only "See the copyright header in functionalmodule.c", a file which doesn't exist. Likewise, the documentation for the C version of this library said "See the copyright header in functional/init.py", which does not exist in that version. (Also, neither version is part of Python, but they are copyright by the PSF.)