That is absolutely idiotic. The task, I mean. The solution is genius though.
from bottom to the top...
Yes, but its bad practice to modify the input data.
Actually it's no requirement that the provided data should not be modified.
A harmless named function modifying its argument(s) is definitely not best practice, but a recipe for long debug sessions.
Loading collection data...
That is absolutely idiotic. The task, I mean. The solution is genius though.
from bottom to the top...
Yes, but its bad practice to modify the input data.
Actually it's no requirement that the provided data should not be modified.
A harmless named function modifying its argument(s) is definitely not best practice, but a recipe for long debug sessions.