IO.ANSI.Table.Spec.Rows (IO ANSI Table v1.0.14) View Source

Derives the rows of a table. Also transposes rows into columns.

Link to this section Summary

Functions

Transposes rows into columns.

Link to this section Functions

Specs

Specs

Transposes rows into columns.

Examples

iex> alias IO.ANSI.Table.Spec.Rows
iex> rows = [
...>   ["1", "2", "3"],
...>   ["4", "5", "6"]
...> ]
iex> Rows.transpose(rows)
[["1", "4"], ["2", "5"], ["3", "6"]]