diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-10 10:36:10 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-10 10:36:10 +0000 |
commit | 8202fc3bc37338e2ee4ac2e860b78b1a555f428e (patch) | |
tree | 6597a9e9158e9b94d4bf76f26fa0b058f7e56154 /NEWS | |
parent | 495e46a2b07944c984ae417a5c93431c79ff6228 (diff) |
* array.c (rb_ary_first, rb_ary_last): Return a shared array when
possible.
* array.c (rb_ary_pop, rb_ary_pop_m, rb_ary_shift, rb_ary_shift_m):
Array#pop and Array#shift can take an optional argument
specifying the number of elements to remove and return;
backported from 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -35,6 +35,12 @@ with all sufficient information, see the ChangeLog file. Return an enumerator if no block is given. + * Array#pop + * Array#shift + + Take an optional argument specifying the number of elements to + remove. + * Integer#ord implemented. * Integer#odd? implemented. * Integer#even? implemented. |