--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/34402692-3d20-447f-aca4-7e815d7badcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# Generate the functions to process plural rules@spec do_cardinal(binary, number, number, number, number, number, number):: :one | :two | :few | :many | :otherEnum.each Cldr.known_locales, fn (locale) ->function_body = cardinal_rules[locale] |> rules_to_condition_statement(__MODULE__)function = quote dodefp do_cardinal(unquote(locale), n, i, v, w, f, t), do: unquote(function_body)endCode.eval_quoted(function, [], __ENV__)end
You received this message because you are subscribed to a topic in the Google Groups "elixir-lang-talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-lang-talk/kaJJGQVWdMs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/CAGnRm4%2B_Nn2_01a-2FJHSDrwdLayWzQdyD1i%2BNmxdUrrjL%3D8xg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/7F2FCE8E-2770-493A-AB16-F969B9985BAF%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Enum.each Cldr.known_locales, fn (locale) ->
function_body = cardinal_rules[locale] |> rules_to_condition_statement(__MODULE__)
defp do_cardinal(unquote(locale), n, i, v, w, f, t), do: unquote(function_body)end
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/CAGnRm4KdpBmyaN%2BARb1EugbCH9qzGup__GZnx8DmDdeJCaU0Xg%40mail.gmail.com.