e.with_index(offset = 0) {|(*args), idx| ... }
e.with_index(offset = 0)
e.with_index(offset = 0)
Instance Public methods
Iterates the given block for each element with an index, which starts from
offset
. If no block is given, returns a new Enumerator that includes the index, starting
from offset
-
offset
-
the starting index to use
Please login to continue.