Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Functions for making software monads
Contributed by: Anton Antonov
Functions for making software monads. Monad programming provides an interface design method that allows interactive, dynamic creation and change of sequentially structured computations with polymorphic and context-aware behavior.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["AntonAntonov/MonadMakers"]
Generate a software monad with prefix "MState":
In[1]:= | ![]() |
Execute monadic pipeline with MState:
In[2]:= | ![]() |
Generate a software monad with the prefix "Perhaps":
In[3]:= | ![]() |
Make a monadic pipeline with the monad tracer that shows the changes of pipeline's value and tabulates pipeline's operations with corresponding descriptions:
In[4]:= | ![]() |
Here we generate a monad with prefix "Maybe":
In[5]:= | ![]() |
The command above defined these functions:
In[6]:= | ![]() |
Out[6]= | ![]() |