Cldr.Substitution.substitute
You're seeing just the function
substitute
, go back to Cldr.Substitution module for more information.
Specs
Substitutes a list of values into a template token list that is
created by Cldr.Substitution.parse/1
.
list1
is a list of values that will be substituted into a a template list previously created byCldr.Substitution.parse/1
list2
is a template list previously created byCldr.Substitution.parse/1
Returns:
- A list with values substituted for parameters in the
list1
template
Examples:
iex> template = Cldr.Substitution.parse "{0} This is something {1}"
[0, " This is something ", 1]
iex> Cldr.Substitution.substitute ["a", "b"], template
["a", " This is something ", "b"]