src/Fusonic/Linq/Linq.php
public function all(callable $func)
    {
        foreach ($this->iterator as $current) {
            $match = LinqHelper::getBoolOrThrowException($func($current));
            if (!$match) {
                return false;
            }
        }
        return true;
    }
public function all(callable $func)
    {
        foreach ($this->iterator as $current) {
            $match = LinqHelper::getBoolOrThrowException($func($current));
            if (!$match) {
                return false;
            }
        }
        return true;
    }
public function all ( callable $ func ) { foreach ( $ this -> iterator as $ current ) { $ match = LinqHelper :: getBoolOrThrowException ( $ func ( $ current ) ) ; if ( ! $ match ) { return false ; } } return true ; }
Determines whether all elements satisfy a condition.

@param callable $func    A function to test each element for a condition.
@return bool             True if every element passes the test in the specified func, or if the sequence is empty; otherwise, false.
Determines whether all elements satisfy a condition .