You've built and worked with recursive command blocks. Recursion can also be used in reporters. Thinking and programming with recursive reporters can often help solve otherwise complicated problems.
map
block doing?Input | Output |
---|---|
0 | 3 |
1 | 5 |
2 | 7 |
3 | 9 |
4 | 11 |
5 | 13 |
Experiment with these two blocks, using short input lists, to see what they do:
all but first of
do?a
to b
. Note that this question does not involve a list. The inputs are numbers; the reported value is a text string (a sentence). What should the block report in the base case? Where does the recursive call go?