public static function some($list, callable $iterator = null, $context = null)
    {
        static::associate($iterator, $context);

        !$iterator && $iterator = function ($item) {
            return static::identity($item);
        };

        return !static::every($list, function ($item) use ($iterator) {
            return !$iterator($item);
        });
    }
public static function some($list, callable $iterator = null, $context = null)
    {
        static::associate($iterator, $context);

        !$iterator && $iterator = function ($item) {
            return static::identity($item);
        };

        return !static::every($list, function ($item) use ($iterator) {
            return !$iterator($item);
        });
    }
public static function some ( $ list , callable $ iterator = null , $ context = null ) { static :: associate ( $ iterator , $ context ) ; ! $ iterator && $ iterator = function ( $ item ) { return static :: identity ( $ item ) ; } ; return ! static :: every ( $ list , function ( $ item ) use ( $ iterator ) { return ! $ iterator ( $ item ) ; } ) ; }
Returns true if any of the values in the list pass the iterator truth test. Short-circuits and stops traversing
the list if a true element is found.

@category Collection Functions

@param traversable $list the list of items to filter
@param callable $iterator the truth-test function
@param object $context optional, if provided will become the context of $iterator

@return bool
Returns true if any of the values in the list pass the iterator truth test . Short - circuits and stops traversing the list if a true element is found .