Textmatrix
Textmatrix is a thin wrapper around Charlists to make working with two dimensional text a breeze.
Once you're done, turn it into a multiline string.
Example
Textmatrix.new()
|> Textmatrix.write(2, 2, "Hello, world!")
|> Textmatrix.to_string()
\n\n Hello, world!
Installation
If available in Hex, the package can be installed
by adding textmatrix
to your list of dependencies in mix.exs
:
def deps do
[
{:textmatrix, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/textmatrix.