Full source code ⋅ Previous chapter ⋅ Next chapter
In previous chapter we just printed a list of all task titles - our next step is to scroll over this list by using Scrolling List. Unfortunately, we cannot transform List into Scrolling List since the latter always has some item focused. However, pretty similar natural transformation does exist:
We can either transform List into Nonempty List using la operator or just reinitialise it - let's choose the latter approach this time:
In this chapter the only thing we have done is just changed data structure and there is no need to touch the rest of the code: