Elementary combinators in Python inspired by LISP and Haskell. Mostly a convenience library for my sake.
Project description
combinators.py
Elementary combinators in Python inspired by LISP and Haskell. Mostly a convenience library for my sake.
Installation
pip install pycombinators
Sample Usage
from pycombinators import flip
from functools import partial
# returns true if all values in xs are numbers
def all_numbers(xs: list) -> bool:
isinstanceof = flip(isinstance)
return all(map(partial(isinstanceof, float), xs))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycombinators-1.0.0.tar.gz
(14.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycombinators-1.0.0.tar.gz.
File metadata
- Download URL: pycombinators-1.0.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddd0e1bc2b1e60e42f39038d109d7c3062667e88b7a639ee87f50ab0e2b18001
|
|
| MD5 |
1bc0205d484a49baca2792122e21e8de
|
|
| BLAKE2b-256 |
0c5a0e366fe07b5453470a8b309afcbdb95121263b213cb6bda8ae6aa3bebfc0
|
File details
Details for the file pycombinators-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pycombinators-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
309109f8a1efa33dd9028d3afcfb8089ae259819b9d697e8051799e1f9393fd5
|
|
| MD5 |
81973af25e6e9295f125e0a2ff07a726
|
|
| BLAKE2b-256 |
750a2c8b012752a2b78bcefd36cbaa4a2f8baf8d615aef15abb3687b36e0fd80
|