diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-18 06:58:35 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-18 06:58:35 +0000 |
| commit | c100ab5cd97f31a278551e4c1242d80fd5add536 (patch) | |
| tree | 0ab00b29111ee1cd6dc6f5f380e4d9cf28ccf448 /include/ruby | |
| parent | a472b91a4a8bcce3308a85fe81ee982e520e3d5d (diff) | |
| download | ruby-c100ab5cd97f31a278551e4c1242d80fd5add536.tar.gz ruby-c100ab5cd97f31a278551e4c1242d80fd5add536.tar.xz ruby-c100ab5cd97f31a278551e4c1242d80fd5add536.zip | |
* range.c (range_first): takes first n element if argument is
given. [ruby-core:12697]
* range.c (range_last): returns last n elements if argument is
given.
* array.c (rb_ary_subseq, rb_ary_last): export.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
| -rw-r--r-- | include/ruby/intern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 2b50364d7..e9be986f4 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -47,6 +47,7 @@ VALUE rb_ary_new4(long, const VALUE *); void rb_ary_free(VALUE); VALUE rb_ary_freeze(VALUE); VALUE rb_ary_aref(int, VALUE*, VALUE); +VALUE rb_ary_subseq(VALUE, long, long); void rb_ary_store(VALUE, long, VALUE); VALUE rb_ary_dup(VALUE); VALUE rb_ary_to_ary(VALUE); |
