Guard like Haskell for Python.
Project description
========
pguard
========
Guard like Haskell for Python.
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.0 (2016-04-23)
------------------
* Initial release.
pguard
========
Guard like Haskell for Python.
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.0 (2016-04-23)
------------------
* Initial release.
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
pguard-0.1.0.tar.gz
(8.5 kB
view details)
File details
Details for the file pguard-0.1.0.tar.gz.
File metadata
- Download URL: pguard-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88720c01e3c1ed0015a8a8586bd1b1cd53247267d078eaaa98282c78a74031e9
|
|
| MD5 |
3a0e181d177fac607e62af3b1e832729
|
|
| BLAKE2b-256 |
b34bb9268acd4b7ba65ec5865cbe0ca5184acb388f969abf6c428dfa6255a786
|