IO.ANSI.Table.Spec.Rows (IO ANSI Table v1.0.7) View Source
Derives the rows of a table. Also transposes rows into columns.
Link to this section Summary
Link to this section Functions
Specs
derive(IO.ANSI.Table.Spec.t(), [Access.container()]) :: IO.ANSI.Table.Spec.t()
Specs
transpose([IO.ANSI.Table.Row.t()]) :: [IO.ANSI.Table.Column.t()]
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"]]