tabulate

Tabulate array of array data (headerless version).

In this version, config.showHeader will be ignored and header section of the table will be invisible.

Parameters

data T[][]

An array of array of string compatible data

config Config

A configuration to set appearance

Return Value

Type: string

The table string

Examples

const testdata = [
    ["D-man", "Programming Language"],
    ["D言語くん", "プログラミング言語"],
];
const reference =
    "   D-man     Programming Language \n" ~
    " D言語くん    プログラミング言語  ";
assert(tabulate(testdata, Config(Style.simple, Align.center, true)) == reference);

Meta