Why does While action not behave like Repeat?

Server side question: Why does the While action not behave like Repeat?

I understand, a repeat iterates through an array, and While executes the steps until the expression evaluates to false. All good there.

My question relates to Scope of variables and output.

In a repeat, it has its own local scope…setting values within a repeat are local to that repeat, unless we use the global option. And the output from within the repeat is retained for each iteration, by placing the output within the array of the repeat.

However, in the while action, the output only displays the last values set.

Is this by design? If so, why? And can we have a while action that behaves like a repeat in terms of scope and output?

An example:

While:
Screen Shot 2020-10-15 at 1.01.12 PM

While results:
Screen Shot 2020-10-15 at 1.00.35 PM

Repeat:
Screen Shot 2020-10-15 at 12.59.34 PM

Repeat results:

Community Page
Last updated: