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:
Challenge: transform Scrolling List back to Nonempty List.
In this chapter we only changed core data structure and there is no need to touch the rest of the code:
Challenge: print these items in reverse order.