package/list.js
function short(nodes, context, recur, wrap) {
    context.write(WRAPPERS[wrap].left);
    context.indentIn();
    context.write('\n');

    for (var i = 0; i < nodes.length; i++) {
        context.write(context.getIndent());
        recur(nodes[i]);

        if (nodes[i + 1]) {
            context.write(',\n');}}



    context.indentOut();
    context.write('\n', context.getIndent(), WRAPPERS[wrap].right);}
function short(nodes, context, recur, wrap) {
    context.write(WRAPPERS[wrap].left);
    context.indentIn();
    context.write('\n');

    for (var i = 0; i < nodes.length; i++) {
        context.write(context.getIndent());
        recur(nodes[i]);

        if (nodes[i + 1]) {
            context.write(',\n');}}



    context.indentOut();
    context.write('\n', context.getIndent(), WRAPPERS[wrap].right);}
function short ( nodes , context , recur , wrap ) { context . write ( WRAPPERS [ wrap ] . left ) ; context . indentIn ( ) ; context . write ( '\n' ) ; for ( var i = 0 ; i < nodes . length ; i ++ ) { context . write ( context . getIndent ( ) ) ; recur ( nodes [ i ] ) ; if ( nodes [ i + 1 ] ) { context . write ( ',\n' ) ; } } context . indentOut ( ) ; context . write ( '\n' , context . getIndent ( ) , WRAPPERS [ wrap ] . right ) ; }
Render the short or compact version of the list

@example
[
1,
2,
3,
4
]
Render the short or compact version of the list