tabular-output ( style quot -- )
Factor documentation > Factor handbook > Input and output > Formatted output > Formatted output on the default stream
Prev:with-nesting ( style quot -- )
Next:with-row ( quot -- )


Vocabulary
io.styles

Inputs and outputs
stylean assoc
quota quotation


Word description
Calls a quotation which emits a series of equal-length table rows using with-row. The results are laid out in a tabular fashion on output-stream.

The style hashtable holds table style information. See Table styles.

Examples
USING: io.styles prettyprint sequences ; { { 1 2 } { 3 4 } } H{ { table-gap { 10 10 } } } [ [ [ [ [ . ] with-cell ] each ] with-row ] each ] tabular-output


Errors
Throws an error if the I/O operation fails.

See also
table-gap, table-border, stream-write-table

Definition
USING: io kernel make namespaces ;

IN: io.styles

: tabular-output ( style quot -- )
swap [ { } make ] dip output-stream get stream-write-table
; inline