Search
Results (52)
- Ruby master Feature #20469 (Third Party's Issue): Add a JSON addition for Enumerator::ArithmeticSequence
- There's a JSON addition for `Range` but one wasn't added for `Enumerator::ArithmeticSequence` when it was introduced. This little PR adds a JSON addition for ArithmeticSequence for parity with a normal Range. https://gith ... red for inclusion now that it's a core class.
- Ruby master Feature #20080 (Feedback): Introduce #bounds method on Range
- Followup Reference: #20027 **Update 1/11/ ... [1, 42] (42..1).minmax #=> [nil, nil] ```
- Ruby master Revision 113f5d7f (git): [ruby/rdoc] Allow an ... d token upto 2 before C method implementation
- Previously only unknown word `intern` is allo ... d token, such as `inline` which is used for `ArithmeticSequence` in enumerator.c, is allowed instead. https://github.com/ruby/rdoc/commit/3a214c1dd1
- Ruby master Feature #19859 (Closed): Start & Finish, Begin & End
- In English "start" is paired with "finish" an ... ring#begin_with?` and `String#finish_with?`
- Ruby master Bug #19231 (Open): Integer#step and Float::IN ... ehaviour when called with and without a block
- The initial issue was reported here https://g ... ssue https://bugs.ruby-lang.org/issues/15518.
- Ruby master Revision cfb96244 (git): Fix Array#[] with ArithmeticSequence with negative steps (#5739)
- * Fix Array#[] with ArithmeticSequence with negative steps Previously, Array#[] when called with an ArithmeticSequence with a negative step did not handle all case ... es [Bug #18247] * Add Array#slice tests for ArithmeticSequence with negative step to test_array Add tests ... a Murata <3959+mrkn@users.noreply.github.com>
- Ruby master Feature #18368 (Closed): Range#step semantics for non-Numeric ranges
- I am sorry if the question had already been d ... ill be needed to code outside of the `Range`.
- Ruby master Bug #18247 (Closed): weird results for `Array ... Array#[]` with argument of type `Enumerator::ArithmeticSequence`
- There are weird results for `Array#slice` or `Array#[]` with argument of type `Enumerator::ArithmeticSequence`. Particularly most results with negative ... thod in https://github.com/ruby/spec/pull/857
- Ruby master Revision f5163798 (git): Fix Enumerator::ArithmeticSequence handling of float ranges
- Depending on the float range, there could be ... increment the step size. Fixes [Bug #16612]
- Ruby master Revision 1a38986a (git): merge revision(s) 25 ... 8229f392c8502c08fe165ab181: [Backport #17218]
- Renamed `nurat_sub` compliant with `rb_rational_plus` Fix ArithmeticSequence#last and ArithmeticSequence#each for non-integer sequences (#387 ... _6@67936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision 82bce422 (git): merge revision(s) 25 ... 8229f392c8502c08fe165ab181: [Backport #17218]
- Renamed `nurat_sub` compliant with `rb_ration ... 4 insertions(+), 3 deletions(-) Fix ArithmeticSequence#last and ArithmeticSequence#each for non-integer sequences (#38 ... ----- 1 file changed, 5 deletions(-)
- Ruby master Revision 5253b957 (git): Document usage of ArithmeticSequence in Array#slice, and add to NEWS (#3952)
- Ruby master Revision fad3023e (git): Fix ArithmeticSequence#last and ArithmeticSequence#each for non-integer sequences (#3870)
- [Bug #17218] [ruby-core:100312]
- Ruby master Feature #17279 (Assigned): Allow a negative step in Range#step with a block
- `Range#step` prohibits a negative step when a ... lock. In this case, `Range#step` creates an ArithmeticSequence, and `ArithmeticSequence#each` can iterate with a negative step. ` ... t may be better to permit it for consistency.
- Ruby master Revision a6a8576e (git): Feature #16812: Allow slicing arrays with ArithmeticSequence (#3241)
- * Support ArithmeticSequence in Array#slice * Extract rb_range_component ... ers the outside of an array [Feature #16812]
- Ruby master Bug #17218 (Closed): Range#step sometimes behaves unexpectedly with Rational endpoints and increment
- I am using the latest stable version. The sam ... win19] ``` When creating an `Enumerator::ArithmeticSequence` with Rational endpoints and increment, some ... (s) puts arith_seq.class # -> Enumerator::ArithmeticSequence # Things look OK puts arith_seq.first # ... > 3 ``` The issue is in the `Enumerator::ArithmeticSequence` instance we get when we call `Range#step` w ... al` endpoints and given a rational step size.
- Ruby master Feature #17195 (Rejected): Freeze Enumerator::ArithmeticSequence objects
- Now, all Ranges are frozen (#15504). Enumerator::ArithmeticSequence is very similar to Range, just with an extra ... ittle use. So, should we make Enumerator::ArithmeticSequence frozen too?
- Ruby master Misc #17138 (Closed): DevelopersMeeting20200925Japan
- # The next dev meeting **Date: 2020/09/25 ... discussion of the ticket in a limited time.
- Ruby master Misc #17041 (Closed): DevelopersMeeting20200831Japan
- # The next dev meeting **Date: 2020/08/26 ... discussion of the ticket in a limited time.
- Ruby master Misc #17019 (Closed): DevelopersMeeting20200720Japan
- # The next dev meeting **Date: 2020/07/20 ... discussion of the ticket in a limited time.
- Ruby master Misc #16933 (Closed): DevelopersMeeting20200618Japan
- # The next dev meeting **Date: 2020/06/18 ... discussion of the ticket in a limited time.
- Ruby master Feature #16838 (Open): Enumerator::ArithmeticSequence missing allocator for #clone and #dup
- In Ruby 2.5, with an Enumerator: ``` ruby ... tor ``` In Ruby 2.6, with an Enumerator::ArithmeticSequence: ``` ruby 1.step.clone #!> TypeError (allocator undefined for Enumerator::ArithmeticSequence) ``` I've gotten around it in 2.6 and 2.7 by checking if an enum is an ArithmeticSequence and reconstituting a new one if so: ``` r ... sn't sure if it was intentional. Thank you!
- Ruby master Feature #16812 (Closed): Allow slicing arrays with ArithmeticSequence
- I believe when concepts of ArithmeticSequence and `Range#%` were introduced, one of the ma ... easoning is as follows: 1. As stated above, ArithmeticSequence and `Range#%` seem to have been introduced e ... gy, to "defend" the proposal, so I would not.
- Ruby master Misc #16775 (Closed): DevelopersMeeting20200514Japan
- # The next dev meeting **Date: 2020/05/14 ... discussion of the ticket in a limited time.
- Ruby master Bug #16612 (Closed): Enumerator::ArithmeticSequence#last with float range produces incorrect value
- **Steps to reproduce** ``` shell % ruby - ... observed in versions `2.7.0` and `2.6.5`.
- Ruby master Revision beae6cbf (git): Fully separate positional arguments and keyword arguments
- This removes the warnings added in 2.7, and c ... duping the hash breaks at least Enumerator::ArithmeticSequence#inspect. Instead of having RB_PASS_CALLED_K ... de by just making it be rb_keyword_given_p().
- Ruby master Feature #16350 (Assigned): ArithmeticSequence#member? can result in infinite loop
- I'm not sure if this is a bug or a feature, i ... e know what I can improve in this report! ArithmeticSequence#member? enumerates through the sequence in o ... step.member?(0)` to return `false`. Since ArithmeticSequences are much more constrained than regular Enum ... t me know if I should keep looking into this!
- Ruby master Feature #15804 (Open): A generic method to resolve the indexing on a sequence
- Currently, the implementation of begin/end-le ... want to support indexing with a `Enumerator::ArithmeticSequence` or even more elaborate ways. I would lik ... ead of duplicating that logic in many places.
- Ruby master Revision 48313f12 (git): Add `or nil` to call-seq of `Enumerator::ArithmeticSequence#begin`
- ``` % ruby -ve 'p (nil..).first' ruby 2.6.3p6 ... -16 revision 67580) [x86_64-darwin18] nil ```
- Ruby master Bug #15755 (Closed): [BUG] Unnormalized Fixnum value on Enumerator::ArithmeticSequence#hash.to_s on Windows
- To reproduce: ``` ruby -e "0.step.hash.to ... tps://www.ruby-lang.org/bugreport.html ```
- Ruby master Feature #15588 (Open): String#each_chunk and #chunks
- String#each_chunk iterates chunks of specifie ... 01", "20190102", "20190103", "20190104"] ```
- Ruby master Feature #15573 (Closed): Permit zero step in Numeric#step and Range#step
- Numeric#step disallows zero in the 2nd argume ... `step' ArgumentError (step can't be 0) ```
- Ruby master Feature #15523 (Open): Let `Range#begin` and `Range#end` be aliases of Range#first and Range#last
- My understanding is that `Range#begin` and `R ... f `Range#first` and `Range#last` instead.
- Ruby master Feature #15504 (Closed): Freeze all Range objects
- # Abstract Range is currently non-frozen. ... e (2) and (3) are crucial. Thanks, Koichi
- Ruby master Revision 5c3be90a (git): Add test case of ArithmeticSequence#sum
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision 7bef465e (git): range.c: reject ArithmeticSequence in rb_range_values
- Reject ArithmeticSequence in rb_range_values so that methods like Array#[] raises TypeError for ArithmeticSequence as an index. git-svn-id: svn+ssh://ci.ruby- ... nk@66478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision 31eb48a0 (git): enumerator.c: Add rb_arithmetic_sequence_components_t
- Add rb_arithmetic_sequence_components_t struct for encapsulating the components of ArithmeticSequence. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision 914a2903 (git): enumerator.c: rb_arithmetic_sequence_extract
- New public C-API for extracting components of Enumerator::ArithmeticSequence or Range. git-svn-id: svn+ssh://ci.ruby-lan ... nk@66351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision 00e21090 (git): NEWS: Add ArithmeticSequence related things
- [ci skip] git-svn-id: svn+ssh://ci.ruby-lang ... nk@64863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision 98fa0ab4 (git): [DOC] Modify descriptions for ArithmeticSequence
- [ci-skip] git-svn-id: svn+ssh://ci.ruby-lang ... nk@64697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision 1595421c (git): [DOC] Add the documentation of ArithmeticSequence
- [ci-skip] git-svn-id: svn+ssh://ci.ruby-lang ... nk@64696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision 11ff6569 (git): enumerator.c: Fix ArithmeticSequence for complex step
- Make sure Enumerator::ArithmeticSequence#each to work well for a complex step value. ... nk@64695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision ca47fb32 (git): Revert "enumerator.c: Fix ArithmeticSequence for complex step"
- This reverts commit 0a0f8238d02a2dfff4cd28924 ... nk@64693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision 0a0f8238 (git): enumerator.c: Fix ArithmeticSequence for complex step
- Make sure Enumerator::ArithmeticSequence#each to work well for a complex step value. ... nk@64692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Feature #15092 (Rejected): Provide step count in Range constructor
- I would like to propose making changes to t ... ges of values at steps without much worry.
- Ruby master Revision f3b347e1 (git): Add version guards for Enumerator::ArithmeticSequence
- * And keep specs for older versions. git-svn ... nk@64411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision 33791cd0 (git): enumerator.c: fix for non-integral argument for ArithmeticSequence#last
- This fixes a bug of Enumerator::ArithmeticSequence#last in the case that a non-integral argumen ... nk@64262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision 25a5227a (git): enumerator.c: undef new and allocate of ArithmeticSequence
- Undefine new and allocate methods of Enumerator::ArithmeticSequence. [ruby-core:82816] [Feature #13904] git-sv ... nk@64256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Revision f1506933 (git): enumerator.c: Introduce Enumerator::ArithmeticSequence
- This commit introduces new core class Enumerator::ArithmeticSequence. Enumerator::ArithmeticSequence is a subclass of Enumerator, and represents ... ep and Range#step without blocks returned an ArithmeticSequence object instead of an Enumerator. This class ... mpatibilities: - You can create a zero-step ArithmeticSequence, and its size is not ArgumentError, but Infinity. - You can create a negative-step ArithmeticSequence from a range. [ruby-core:82816] [Feature #1 ... nk@64205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Ruby master Feature #14697 (Closed): Introducing Range#% as an alias to Range#step
- In #13904, `Enumerator::ArithmeticSequence` has been accepted for the representation of ... notation is already introduced numo-narray.
- Ruby master Feature #14394 (Assigned): Class.descendants
- There have been numerous implementations of t ... possible to add a `descendants` class method?
- Ruby master Feature #13904 (Closed): getter for original information of Enumerator
- At https://gitter.im/red-data-tools/ja?at=59b ... nel#method`, so use `#method_name` instead.