Guard like Haskell for Python.
Status
Requirements
Python 2.7 or Python 3.3 over or PyPy 2.4.0 over
Features
guard with lambda
Setup
$ pip install --user pguard or (venv)$ pip install pguard
Usage
>>> from pguard import guard >>> from pguard import guard_cl as g >>> (lambda n: guard( ... g(-1, n < 0), ... g(0, n == 0), ... g(1) ## otherwise ... ))(0) 0
ChangeLog
0.1.4 (2016-04-24)
Fixes setup.py url.
0.1.3 (2016-04-23)
Fixes README.
Adds check long-description to pre-commit hook.
0.1.2 (2016-04-23)
Fixes setup.py version.
0.1.1 (2016-04-23)
completed coverage 100%.
Adds sample usages.
0.1.0 (2016-04-23)
Initial release.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pguard-0.1.4.tar.gz
(9.1 kB
view details)
File details
Details for the file pguard-0.1.4.tar.gz.
File metadata
- Download URL: pguard-0.1.4.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddff136ac65c9b522ce4dd6dfd93d7323369657e2d524a5a8a607155a15c4ce2
|
|
| MD5 |
8ad0ddd55069bfef409bc3e16f7b2f1e
|
|
| BLAKE2b-256 |
ec57c588132d040adc8275cb8399d400d9daaff905e00e70f159d7cb8b811a6e
|