Cldr.Number.Parser.resolve_pers

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

resolve_pers(list, options \\ [])

View Source (since 2.21.0)

Specs

resolve_pers([String.t(), ...], Keyword.t()) :: [per() | String.t()]

Resolve and tokenize percent and permille sybols from strings within a list.

Percent and permille symbols can be identified at the beginning and/or the end of a string.

Arguments

  • list is any list in which percent and permille symbols are expected

  • options is a keyword list of options

Options

Examples

iex> Cldr.Number.Parser.scan("100%")
...> |> Cldr.Number.Parser.resolve_pers()
[100, :percent]