Table()

From TinyMUX
Jump to navigation Jump to search


table(<list>,<field width>,<line length>,<delimiter>,<output separator>,<padding>)

This function returns the elements of <list> in a tabular format.
All other parameters are optional.

- <field width> specifies how wide each table entry is allowed to be. Default: 10 characters.
- <line length> is how wide a table row can be. Default: 78 characters.
- <delimiter> is the delimiter used in <list>. Default: White space.
- <output separator> is a single character to be used between entries in the table. Default: White space.
- <padding> is a string which will be repeated to fill in space between the end of a table entry and the next column. Default: White space.

Example

> think table(a b areallylongone d)

   a          b          areallylon d

> think table(the quick brown fox,10,25, ,|)

   the       |quick
   brown     |fox

> think table(foo bar baz,10,25,,|,.\,)

   foo.,.,.,.|bar.,.,.,.
   baz.,.,.,.

Related Topics

columns()