Project

General

Profile

Actions

Feature #17744

closed

Accumulate `Enumerable#tally` results

Added by nobu (Nobuyoshi Nakada) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:102992]

Description

A feature request at DevelopersMeeting20200317Japan:

  • ko1: want to accumulate Enumerable#tally results

    h = {}
    [:a,:b,:c].tally(h)
    [:a,:b,:d].tally(h)
    
    p h #=> {:a=>2, :b=>2, :c=>1, :d=>1}
    
  • matz: looks good. please create a proposal

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0