Difference between revisions of "Textutils.tabulate"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} {{Function |name=textutils.tabulate |args= table table, table table, ... |returns=Text printed on the screen |api=textutils |ad...")
 
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=textutils.tabulate
 
|name=textutils.tabulate
|args= [[table (type)|table]] table, [[table (type)|table]] table, ...
+
|args= [[table (type)|table]] table1, [[table (type)|table]] table2, ...
 
|returns=Text printed on the screen
 
|returns=Text printed on the screen
 
|api=textutils
 
|api=textutils

Revision as of 13:23, 4 December 2012


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