Just as is there a function to get the *min,* *max, sum, *etc values from
an Enum, would be useful to have also an average function.

Enum.avg/1 or Enum.average/1

If it's ok for the community, I will be happy to implement it.

Example:

iex> Enum.avg(0..10)
5

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CACFi_YPY5QURbQ8G%3DqA%3Dt6iQLWUToQygU-jo1%2BzdmW%3DFE3EmKw%40mail.gmail.com.

Reply via email to