summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 10:00:16 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 10:00:16 +0000
commit0e5c1f998124de44e53eaf16ee8d6a330798718c (patch)
tree590b1db6bd722edc914997792c3415a6e6cc2717 /NEWS
parentf5f1a18ceb87cd8ffa065a57b95f6d716ed6902c (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--NEWS15
1 files changed, 15 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 59f8908d72..3750142eb1 100644
--- a/NEWS
+++ b/NEWS
@@ -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