Cldr.Number.Parser.resolve
You're seeing just the function
resolve
, go back to Cldr.Number.Parser module for more information.
Specs
Maps a list of terms (usually strings and atoms) calling a resolver function that operates on each binary term.
If the resolver function returns {:error, term}
then no change is made to the term, otherwise
the return value of the resolver replaces the
original term.
Arguments
list
is a list of terms. Typically this is the result of callingCldr.Number.Parser.scan/1
.resolver
is a function that takes two arguments. The first is one of the terms in thelist
. The second isoptions
.options
is a keyword list of options that is passed to the resolver function.
Note
- The resolver is called only on binary elements of the list.
Returns
list
as modified through the application of the resolver function on each bianry term.
Examples
See Cldr.Number.Parser.resolve_currencies/2
and
Cldr.Number.Parser.resolve_pers/2
which both
use this function.