diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-14 11:03:42 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-14 11:03:42 +0000 |
commit | f2dc726691434553a8f4914fc9e51b53e0eeed6f (patch) | |
tree | dd86065ef2dabd992e5e2fc6796fb83e4bd104f9 /NEWS | |
parent | 7a581f00ad511171f160238332cfe54537027041 (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-- | NEWS | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |