This is a small example, but for rendering large Map's etc, having the comma on a separate line takes up a lot of vertical space. Maybe outputOptionsCompactParens should induce putting the comma on the same line?
I would love to just have a pPrintCompact function to provide such compact output (the above usage is already rather long).
further edit: perhaps the initial newline could be dropped too, to something like this?:
I think this is covered by #84, except for pPrintCompact, which is possibly a good idea. Could you open that part as a separate issue? Then I'll close this and you can subscribe to #84.
I really like the simplicity of this library, though I do wish it defaulted to more compact output. 8-)
Simple lists render nicely:
But for complicated lists using available compact options:
This is a small example, but for rendering large Map's etc, having the comma on a separate line takes up a lot of vertical space. Maybe outputOptionsCompactParens should induce putting the comma on the same line?
I would love to just have a
pPrintCompact
function to provide such compact output (the above usage is already rather long).further edit: perhaps the initial newline could be dropped too, to something like this?: