Small steps, joined upintermediate
Four small transformations joined by a pipeline can each be tested alone; the same four welded into one loop can only be tested together, and only through their output.
One function doing four jobs, none of which can be tested alone.
pipe composes left to right, each step works standalone, and the pipeline gives the original answer.
Published in full, before you start — every point is one of these and there is nothing else. Each one runs your code; it is not a search for keywords.
Four small transformations joined by a pipeline can each be tested alone; the same four welded into one loop can only be tested together, and only through their output.