Actions
Feature #12350
openIntroduce Array#find! that raises an error if element not found
Feature #12350:
Introduce Array#find! that raises an error if element not found
Status:
Open
Assignee:
-
Target version:
-
Description
It would be great to have some function (like Hash#fetch) for Array that raises an exception if element not found by passed block in find.
For example:
I just noticed that there are many cases when it's needed to raise an exception (because this is exceptional situation) if an element not found.
Currently I just define methods like this one:
Actions