python-either"Either" and "Maybe" data structures | |
Download |
python-either Ranking & Summary
Advertisement
- License:
- The Apache License 2.0
- Price:
- FREE
- Publisher Name:
- Kenneth Knowles
- Publisher web site:
- http://kenn.frap.net/pmathgen/
python-either Tags
python-either Description
python-either is a Python library that provides two fundamental near-trivial data structures for Python:- Either also known as "coproduct", "sum type", "variant", "tagged union", "disjoint union", etc: A value that comes from one of two sets- Maybe also known as "option" or "Either Nothing": A value that may be missing. (Python has "None" but it does not compose)Each is ~10 lines, mostly boilerplate, but now they are in one place in a library.Product's homepage
python-either Related Software