ruby-changes:54820
From: nobu <ko1@a...>
Date: Fri, 8 Feb 2019 18:57:27 +0900 (JST)
Subject: [ruby-changes:54820] nobu:r67039 (trunk): enum.c: [DOC] tally does not take a block
nobu 2019-02-08 18:57:23 +0900 (Fri, 08 Feb 2019) New Revision: 67039 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67039 Log: enum.c: [DOC] tally does not take a block [Feature #11076] Modified files: trunk/enum.c Index: enum.c =================================================================== --- enum.c (revision 67038) +++ enum.c (revision 67039) @@ -967,7 +967,7 @@ tally_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, ha https://github.com/ruby/ruby/blob/trunk/enum.c#L967 * elements and the values are numbers of elements in the collection * that correspond to the key. * - * (1..6).tally { |i| i%3 } #=> {0=>2, 1=>2, 2=>2} + * (1..6).tally #=> {1=>1, 2=>1, 3=>1, 4=>1, 5=>1, 6=>1} * */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/