summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKenta Murata <mrkn@users.noreply.github.com>2020-10-21 02:40:18 +0900
committerGitHub <noreply@github.com>2020-10-21 02:40:18 +0900
commita6a8576e877b02b83cabd0e712ecd377e7bc156b (patch)
tree3802e57e38cb467462d19dd266dc4e848d428cc6 /include
parent081cc4eb283cb01ddffb364397e5175dbfacab66 (diff)
Feature #16812: Allow slicing arrays with ArithmeticSequence (#3241)
* Support ArithmeticSequence in Array#slice * Extract rb_range_component_beg_len * Use rb_range_values to check Range object * Fix ary_make_partial_step * Fix for negative step cases * range.c: Describe the role of err argument in rb_range_component_beg_len * Raise a RangeError when an arithmetic sequence refers the outside of an array [Feature #16812]
Notes
Notes: Merged-By: mrkn <mrkn@ruby-lang.org>
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/intern/enumerator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/internal/intern/enumerator.h b/include/ruby/internal/intern/enumerator.h
index 7698e24538..c81485155c 100644
--- a/include/ruby/internal/intern/enumerator.h
+++ b/include/ruby/internal/intern/enumerator.h
@@ -42,6 +42,7 @@ VALUE rb_enumeratorize(VALUE, VALUE, int, const VALUE *);
VALUE rb_enumeratorize_with_size(VALUE, VALUE, int, const VALUE *, rb_enumerator_size_func *);
VALUE rb_enumeratorize_with_size_kw(VALUE, VALUE, int, const VALUE *, rb_enumerator_size_func *, int);
int rb_arithmetic_sequence_extract(VALUE, rb_arithmetic_sequence_components_t *);
+VALUE rb_arithmetic_sequence_beg_len_step(VALUE, long *begp, long *lenp, long *stepp, long len, int err);
RBIMPL_SYMBOL_EXPORT_END()