As with anything that outputs its result directly to the browser, you can use the output-control functions to capture the output of this function, and save it in a string (for example).
Les tableaux sont explorés recursivement, avec des indentations, pour mettre en valeur leur structure.