From: matz@... Date: 2019-07-29T08:24:16+00:00 Subject: [ruby-core:93990] [Ruby master Feature#15919] Offset parameter for `Integer#times` Issue #15919 has been updated by matz (Yukihiro Matsumoto). I think `Numeric#step` was OK. Is there any reason to stick with `Integer#times`? Matz. ---------------------------------------- Feature #15919: Offset parameter for `Integer#times` https://bugs.ruby-lang.org/issues/15919#change-80184 * Author: sawa (Tsuyoshi Sawada) * Status: Open * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: ---------------------------------------- I request an optional argument on `Integer#times` to set the offset at start, just like `Enumerator#with_index`. ```ruby 5.times(3){|i| p i} # >> 3 # >> 4 # >> 5 # >> 6 # >> 7 ``` I think there are plenty of use cases, especially when the offset is 1. -- https://bugs.ruby-lang.org/ Unsubscribe: