I'll add my 2 cents of answer relating to your sentence
Thanks, but I rather want them to be returned on two separate output
lines, if that's possible.
As mentioned by Szabolcs functions always return a single answer. Therefore, if you want more than one answer in a single return, you need to return a single answer that can contain multiple elements, and this was already mentioned earlier, with several suggestions for different containers.
If you need to create a cell, you can print (Szabolcs already mentioned that) of your more fancy cell generation using CellPrint
and related functionality.
Anyway, printing or generating cells is considered as Side Effect of the function, since it is not the value returned by the function, but "something" that is done "on the side" (just compare Map
to Scan
to notice the difference)
I hope it helps to summarize the issue
sincerely