srry my old messages posted now.....

2019年10月9日(水) 2:05 Osawa QWYNG <[email protected]>:

> count_by is the first name in ruby's tally proposal.
> However, it was changed to tally as "quite well to me what this method
> does and avoids clashing with group or count."
> Of course, count_by is good too.
>
> 2019年10月1日火曜日 0時16分17秒 UTC+9 Osawa QWYNG:
>>
>> Hi! Thank you for a great programing language.
>> This is a suggestion for a new enum function.
>>
>>
>> Add tally function like Rubys tally.
>>
>>
>> tally is Rubys 2.7.0 new function
>>
>> https://bugs.ruby-lang.org/issues/11076
>>
>> and this is My PR for Elixir
>>
>> https://github.com/elixir-lang/elixir/pull/9373
>>
>>
>> iex> Enum.tally(~w{ant buffalo ant ant buffalo dingo})
>> %{"ant" => 3, "buffalo" => 2, "dingo" => 1}
>>
>> iex> Enum.tally(~w{aa aA bb cc}, fn x -> String.downcase(x) end)
>> %{"aa" => 2, "bb" => 1, "cc" => 1}
>>
>>
>> The following article is more about this.
>>
>> https://medium.com/@baweaver/ruby-2-7-enumerable-tally-a706a5fb11ea
>>
>>
>> Ruby 2.7.0 has not released yet but this function is really good
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "elixir-lang-core" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elixir-lang-core/hBRKIIy8QKE/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/24503dd9-13ea-4636-88f7-dc2555a869db%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/24503dd9-13ea-4636-88f7-dc2555a869db%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CADfR9tHCPn0MtRRF5D30CCDnAydq3HM-JTfUVzyV3Gc110e0hg%40mail.gmail.com.

Reply via email to