Created
January 27, 2016 23:03
-
-
Save anonymous/7b9a69291f5b3bcc9952 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Commit that made Enumerable#map pass all values to the block: | |
------------------------------------------------------------------------ | |
r14667 | matz | 2007-12-25 07:01:22 +0100 (Tue, 25 Dec 2007) | 5 lines | |
* enum.c (enum_yield): when multiple values yielded from #each | |
pack them into an array. [ruby-dev:32708] | |
* enum.c: all method but all?, any?, one? and none? passed packed | |
multiple values to the block. | |
------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Commit that made Enumerable#select (and others) only use the first parameter: | |
----------------------------------------------------------------------- | |
r16391 | knu | 2008-05-12 13:21:39 +0200 (Mon, 12 May 2008) | 42 lines | |
* enum.c (grep_i): Be aware of multiple values; | |
fix [ruby-dev:34653]. | |
(grep_iter_i): Ditto. | |
(count_i): Ditto. | |
(find_i): Ditto. | |
(find_index_i): Ditto. | |
(find_all_i): Ditto. | |
(reject_i): Ditto. | |
(inject_i): Ditto. | |
(inject_op_i): Ditto. | |
(partition_i): Ditto. | |
(group_by_i): Ditto. | |
(first_i): Ditto. | |
(sort_by_i): Ditto. | |
(all_i): Ditto. | |
(all_iter_i): Ditto. | |
(any_i): Ditto. | |
(any_iter_i): Ditto. | |
(one_i): Ditto. | |
(one_iter_i): Ditto. | |
(none_i): Ditto. | |
(none_iter_i): Ditto. | |
(min_i): Ditto. | |
(min_ii): Ditto. | |
(max_i): Ditto. | |
(max_ii): Ditto. | |
(minmax_i): Ditto. | |
(minmax_ii): Ditto. | |
(min_by_i): Ditto. | |
(max_by_i): Ditto. | |
(minmax_by_i): Ditto. | |
(member_i): Ditto. | |
(take_i): Ditto. | |
(take_while_i): Ditto. | |
(drop_i): Ditto. | |
(drop_while_i): Ditto. | |
(cycle_i): Ditto. | |
* enum.c (each_with_index): Update rdoc. each_with_index() takes | |
argments that are passed through to each(), and a hash preserves | |
key order. | |
------------------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment