Fxnk.String (Fxnk v0.1.4) View Source

Functions for working with strings.

Link to this section Summary

Functions

Concatenate two strings.

Joins a list of strings together with a seperator.

Link to this section Functions

Specs

concat(String.t(), String.t()) :: String.t()

Concatenate two strings.

Example

iex> Fxnk.String.concat("hello", "world")
"helloworld"

Specs

join([String.t(), ...], String.t()) :: String.t()

Joins a list of strings together with a seperator.

Example

iex> Fxnk.String.join(["a", "b", "c"], "|")
"a|b|c"
iex> Fxnk.String.join(["foo", "bar", "baz"], " is better than ")
"foo is better than bar is better than baz"