||:: task foo :: do something :: do another thing :: do yet another thing :: end task :: task bar :: do another thing :: do something :: do yet another thing :: end task :: run task foo :: run task bar |:: do something | :did something: |:: do another thing | :did another thing: |:: do yet another thing| :did yet another thing: |:: task $x :: end task | |:: task $x? :: $1 | :tasks: $x $1 |:: task $x? :: $1 $2 | :tasks: $x $1 $2 |:: task $x? :: $1 $2 $3 | :tasks: $x $1 $2 $3 |:: task $x? :: $1 $2 $3 $4| :tasks: $x $1 $2 $3 $4 |:: run task $x| :: load task $x :: execute task :: unload task $x |:: load task $x? :tasks: $x $1 | :task: $1 |:: load task $x? :tasks: $x $1 $2 | :task: $1 $2 |:: load task $x? :tasks: $x $1 $2 $3 | :task: $1 $2 $3 |:: load task $x? :tasks: $x $1 $2 $3 $4| :task: $1 $2 $3 $4 |:: load task $x? :tasks: $y $1 | :checked tasks: $y $1 |:: load task $x? :tasks: $y $1 $2 | :checked tasks: $y $1 $2 |:: load task $x? :tasks: $y $1 $2 $3 | :checked tasks: $y $1 $2 $3 |:: load task $x? :tasks: $y $1 $2 $3 $4| :checked tasks: $y $1 $2 $3 $4 |:: load task $x| :: reset tasks |:: execute task? :task: $1 | :: $1 :executed task items: $1 |:: execute task? :task: $1 $2 | :: $1 $2 :executed task items: $1 $2 |:: execute task? :task: $1 $2 $3 | :: $1 $2 $3 :executed task items: $1 $2 $3 |:: execute task? :task: $1 $2 $3 $4| :: $1 $2 $3 $4 :executed task items: $1 $2 $3 $4 |:: execute task| |:: unload task $x? :executed task items: $1 | :tasks: $x $1 |:: unload task $x? :executed task items: $1 $2 | :tasks: $x $1 $2 |:: unload task $x? :executed task items: $1 $2 $3 | :tasks: $x $1 $2 $3 |:: unload task $x? :executed task items: $1 $2 $3 $4| :tasks: $x $1 $2 $3 $4 |:: unload task $x| |:: reset tasks? :checked tasks: $x $1 | :tasks: $x $1 |:: reset tasks? :checked tasks: $x $1 $2 | :tasks: $x $1 $2 |:: reset tasks? :checked tasks: $x $1 $2 $3 | :tasks: $x $1 $2 $3 |:: reset tasks? :checked tasks: $x $1 $2 $3 $4| :tasks: $x $1 $2 $3 $4 |:: reset tasks|