fcompop-0.3
توضیحات
Function composition operators for functional programming
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fcompop-0.3 |
| نام | fcompop |
| نسخه کتابخانه | 0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jun Namikawa |
| ایمیل نویسنده | jnamika@gmail.com |
| آدرس صفحه اصلی | https://github.com/jnamika/fcompop |
| آدرس اینترنتی | https://pypi.org/project/fcompop/ |
| مجوز | ISC License (ISCL) |
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'
نحوه نصب
نصب پکیج whl fcompop-0.3:
pip install fcompop-0.3.whl
نصب پکیج tar.gz fcompop-0.3:
pip install fcompop-0.3.tar.gz