View Source Doex.Io.Table (doex v0.14.1)
Takes a list of rows (themselves a list of columns) and returns
iodata containing an aligned ASCII table with padding
spaces
between each column.
Thanks to https://gist.github.com/ivan/dc26e349de6f1693c1c77355ec85b643 http://stackoverflow.com/questions/30749400/output-tabular-data-with-io-ansi
examples
Examples
iex> Doex.Io.Table.format([[1, 2, 3], [4000, 6000, 9000]])
[[[["1", " "], ["2", " "], "3"], 10],
[[["4000", " "], ["6000", " "], "9000"], 10]]