You're seeing just the function resolve, go back to Cldr.Number.Parser module for more information.
Link to this function

resolve(list, resolver, options)

View Source


resolve([any()], (... -> any()), Keyword.t()) :: list()

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.


  • list is a list of terms. Typically this is the result of calling Cldr.Number.Parser.scan/1.

  • resolver is a function that takes two arguments. The first is one of the terms in the list. The second is options.

  • options is a keyword list of options that is passed to the resolver function.


  • The resolver is called only on binary elements of the list.


  • list as modified through the application of the resolver function on each bianry term.


See Cldr.Number.Parser.resolve_currencies/2 and Cldr.Number.Parser.resolve_pers/2 which both use this function.