Issue #10506 has been reported by Thomas Sevestre.

----------------------------------------
Feature #10506: Imprve Enumerator.any? behavior
https://bugs.ruby-lang.org/issues/10506

* Author: Thomas Sevestre
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
IMHO the API `Enumerable.any?` behavior could be improved in the following manner:

    any? { |obj| block } вк true or false
    any? вк an_enumerator 

This would allow to do things like

    [].any?.with_index { |obj, index| }

And it would be more consistent with collect and other Enumerable functions:

    collect { |obj| block } вк array
    collect вк an_enumerator





-- 
https://bugs.ruby-lang.org/