{"author_name":"osyo-manga","title":"Ruby 2.7 \u3067 `Enumerable#tally` \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u308b","author_url":"https://blog.hatena.ne.jp/osyo-manga/","image_url":null,"blog_title":"Secret Garden(Instrumental)","url":"https://secret-garden.hatenablog.com/entry/2019/03/07/210252","version":"1.0","provider_url":"https://hatena.blog","height":"190","width":"100%","blog_url":"https://secret-garden.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2019%2F03%2F07%2F210252\" title=\"Ruby 2.7 \u3067 `Enumerable#tally` \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u308b - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Ruby 2.7 \u3067 Enumerable#tally \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002 Feature #11076: Enumerable method count_by - Ruby trunk - Ruby Issue Tracking System \u3042\u307e\u308a\u805e\u304d\u6163\u308c\u306a\u3044\u5358\u8a9e\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u300e\u540c\u3058\u8981\u7d20\u306e\u6570\u3092 Hash \u3067\u8fd4\u3059\u300f\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002 pp [1, 1, 2, 2, 2, 3, 3, 4].tally # => {1=>2, 2=>3, 3=>2, 4=>1} pp [\"homu\", \"homu\", \"mami\", \"mado\", \"mado\", \"mado\"].\u2026","published":"2019-03-07 21:02:52","categories":["Ruby"],"type":"rich","provider_name":"Hatena Blog"}