Project

General

Profile

Actions

Feature #10958

closed

remove "initial_state" argument of Enumerable#{slice_before,chunk}

Added by akr (Akira Tanaka) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:<unknown>]

Description

I'd like to remove "initial_state" argument of Enumerable#{slice_before,chunk}.

I think a state management can be implemented using local variable without the argument.
So I'd like to remove it because it is too complex and
not consistent with Enumerable#{slice_when,slice_after} which doesn't have the argument.

Note that I added deprecated warning since Ruby 2.2.
It seems no one complained the warning until now.


Files


Related issues

Related to Ruby master - Bug #13202: Enumerable#slice_before does not take both argument and block at the same time, as it ought to.ClosedActions
Actions

Also available in: Atom PDF