No project description provided
Project description
description: Reasoning the logic flow with Magic
Mithrandir
Installation
As much simple as it could be, use pip
, pipenv
or poetry
:
$ pip install mithrandir
{% hint style="info" %} Remember to check out the latest version available {% endhint %}
Once you have Mithrandir in your presence, let him be your guide...
{% code title="$ python" %}
>> from mithrandir import Monad, Op, MonadSignature as Sig
>> magic = Monad(1) | Op.MAP(lambda x: x + 1)
>> print("magic = ", magic)
... "magic = Monad<async_mode=False>[2]"
>> # Give me your blessing...
>> print("blessed-value = ", magic.unwrap())
... "blessed-value = 2"
{% endcode %}
For more advanced tutorials and examples, check out the next parts of the document
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mithrandir-1.4.1.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for mithrandir-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7144232891fb2cdcbf897835d3fd36d27b9081cc82a4ff24902515af63e08df |
|
MD5 | a38ef6ba51381c11f2c1ccce30975e81 |
|
BLAKE2b-256 | ad510d53c5206332b9a235e9b7187ded93278af807b63fb81f969b400ca88ba4 |