summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 11:03:42 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 11:03:42 +0000
commitf2dc726691434553a8f4914fc9e51b53e0eeed6f (patch)
treedd86065ef2dabd992e5e2fc6796fb83e4bd104f9 /NEWS
parent7a581f00ad511171f160238332cfe54537027041 (diff)
* array.c (rb_ary_flatten, rb_ary_flatten_bang): Take an optional
argument that determines the level of recursion to flatten; backported from 1.9. * array.c (rb_ary_shuffle_bang, rb_ary_shuffle, rb_ary_choice, rb_ary_cycle, rb_ary_permutation, rb_ary_combination, rb_ary_product, rb_ary_take, rb_ary_take_while, rb_ary_drop, rb_ary_drop_while): New methods: Array#shuffle, #shuffle!, #choice, #cycle, #permutation, #combination, #product, #take, #take_while, #drop, #drop_while; backported from 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS20
1 files changed, 20 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 3a0696337c..35180a00a4 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,12 @@ with all sufficient information, see the ChangeLog file.
determine if each element should be counted instead of checking if
the element is non-nil.
+ * Array#flatten
+ * Array#flatten!
+
+ Takes an optional argument that determines the level of recursion
+ to flatten.
+
* Array#index
* Array#rindex
@@ -43,6 +49,20 @@ with all sufficient information, see the ChangeLog file.
Take an optional argument specifying the number of elements to
remove.
+ * Array#choice
+ * Array#combination
+ * Array#cycle
+ * Array#drop
+ * Array#drop_while
+ * Array#permutation
+ * Array#product
+ * Array#shuffle
+ * Array#shuffle!
+ * Array#take,
+ * Array#take_while
+
+ New methods.
+
* Dir#each
* Dir#foreach