textutils.tabulate

From ComputerCraft Wiki
Revision as of 13:23, 4 December 2012 by Thesbros (Talk | contribs)

Jump to: navigation, search


Grid Redstone.png  Function textutils.tabulate
Prints tables in an ordered form. Each table is a row, columns' width is auto-adjusted.
Syntax textutils.tabulate(table table1, table table2, ...)
Returns Text printed on the screen
Part of ComputerCraft
API textutils

Examples

Grid paper.png  Example
Prints two tables in an ordered form.
Code
textutils.tabulate({1,2,3},{"A","B","C"})
Output Print:

1.0 2.0 3.0

A B C