Full source code ⋅ Previous chapter ⋅ Next chapter
Let's introduce task statuses - they either completed or waiting for completion:
In addition we add pattern synonyms to avoid confusion:
Statuses should be included in a task type declaration:
Printing expression is bloating, it's good time to split it on lines and blocks:
Challenge: try to rewrite a snippet above using at morphism instead of implicit mappings (yio'yio'yoi, yio'yio, yio'yoi, yio).
Printing looks a bit clearer now: