Murat Kasimov

More about me

Я language (β)

/Я language (β)/Tutorials/Command line task manager 4/

Full source codePrevious chapterNext chapter

First of all, let's delegate printing out whole Scrolling List to some expression:

> print tasks = tasks >> `kyokl` Focus `ha` Forth `ha` Await `ha` print >> `ha___` is @( Cursor `P` String ) >>> `ho__'yoi` Focus `hu` " -> " `la` Exist `hu` " - " >>> `ho__` to @(Nonempty List) `ha` Merge @(Nonempty List) @(Nonempty List) >>> `ho__'yokl` Forth `ha` Await `ha` output >>> `ho__'yuk` Await `ha` output `ha` Caret `hv'he` Newline

Challenge: put cursor mark on the right side.

Previously we highlighted a focused item in console output, but we never had a chance to actually change it:

> display `ha` that @( Scrolling List ) `hv__` shift `hv'he` Down `hv` start

Challenge: try to shift twice, either using State or using that manually.

Challenge: what if you try to shift using Lift instead?