NumEx v0.1.0 StringManipulations View Source
A module to perform operations on Strings.
Link to this section Summary
Functions
Takes two strings and concatenates them element-wise
Return a copy of s1 with its elements centered in a string of length width
Return a string which is the concatenation of the strings in the sequence seq
Return (a * i), that is string multiple concatenation, element-wise
Link to this section Functions
Takes two strings and concatenates them element-wise.
Examples
iex> StringManipulations.add("Elixir", "Lang")
["EL", "la", "in", "xg"]
Return a copy of s1 with its elements centered in a string of length width..
Examples
iex> StringManipulations.center("Elixir", 5)
"Elixi"
Return a string which is the concatenation of the strings in the sequence seq.
Examples
iex> StringManipulations.join("Elixir", "Lang")
"LElixiraElixirnElixirg"