In MIT App Inventor (AI), puzzle-shaped blocks are connected to program Android apps. AI has Python-like lists typically manipulated with loops, but implementing such loops correctly is challenging for novice AI programmers. To simplify list processing, we extended AI with new blocks that map, filter, reduce and sort lists. Since AI does not have first-class functions, these pseudo-higher-order list operator (PHOLO) blocks incorporate the parameter and body declarations of functional arguments normally associated with these operators. To assess the usability of these new list operators, we conducted a user study with 18 students with AI experience. Most users correctly completed a majority of the tasks, but many struggled with processing lists of lists and sorting tasks involving two keys.
['Soojin Kim', 'Franklyn A. Turbak']
Adapting higher-order list operators for blocks programming