Metadata-Version: 2.1
Name: fcompop
Version: 0.3
Summary: Function composition operators for functional programming
Home-page: https://github.com/jnamika/fcompop
Author: Jun Namikawa
Author-email: jnamika@gmail.com
License: ISC License (ISCL)
Keywords: function composition operator functional programming
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Software Development :: Libraries :: Python Modules


fcompop is a Python library that provides function composition operators.

An example of usages is following:

    >>> import fcompop
    >>> fcompop.inject()  # adding operators to builtin&user functions
    >>> func = str._ >> (lambda x: x * 2 + 'abc') >> str.upper
    >>> func(123)
    '123123ABC'
    >>> func = (lambda x: '-' + x)._ << chr << (lambda x: x + 1) << ord
    >>> func('a')
    '-b'


