Metadata-Version: 2.1
Name: pythonz_enum
Version: 0.2.1
Summary: enums for pythonz
Author-Email: Yuichiro Smith <yu-ichiro@s3i7h.com>
License: MIT
Requires-Python: >=3.8
Requires-Dist: pythonz_pipe>=0.1.1
Description-Content-Type: text/markdown

# pythonz_enum

implementation of rust-like value holding enums

# example

```python
from pythonz_enum import Maybe


def find(predicate, iter_):
    try:
        return Maybe.just(next(filter(predicate, iter_)))
    except StopIteration:
        return Maybe.nothing()


find(lambda a: a is not None, [None, 2, 3])  # Maybe.Just(2)
```