diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-14 10:00:16 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-14 10:00:16 +0000 |
commit | 0e5c1f998124de44e53eaf16ee8d6a330798718c (patch) | |
tree | 590b1db6bd722edc914997792c3415a6e6cc2717 /NEWS | |
parent | f5f1a18ceb87cd8ffa065a57b95f6d716ed6902c (diff) |
* enum.c: New methods: Enumerable#one?, #none?, #minmax, #min_by,
#max_by, #minmax_by and #cycle; backported from 1.9.
* enum.c (enum_find_index): Add support for find_index(obj);
[ruby-dev:34313]; backported from 1.9.
* enum.c (enum_inject): Add support for Enumerable#inject(:binop);
backported from 1.9.
* enum.c: Alias Enumerable#reject to #inject; backported from 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -62,9 +62,16 @@ with all sufficient information, see the ChangeLog file. New methods for various enumeration defined by the enumerator library. * Enumerable#count + * Enumerable#cycle * Enumerable#find_index * Enumerable#first * Enumerable#group_by + * Enumerable#max_by + * Enumerable#min_by + * Enumerable#minmax + * Enumerable#minmax_by + * Enumerable#none? + * Enumerable#one? New methods. @@ -77,6 +84,14 @@ with all sufficient information, see the ChangeLog file. Return an enumerator if no block is given. + * Enumerable#inject + + Accepts a binary operator instead of a block. + + * Enumerable#reduce + + New alias to #inject. + * Hash#delete_if * Hash#each * Hash#each_key |