public function whereFirstOrDefault($where, $default=null)
    {
        $where = LambdaUtils::toConditionCallable($where);
        foreach($this as $record)
        {
            if(call_user_func($where, $record))
            {
                return $record;
            }
        }
        return $default;
    }
public function whereFirstOrDefault($where, $default=null)
    {
        $where = LambdaUtils::toConditionCallable($where);
        foreach($this as $record)
        {
            if(call_user_func($where, $record))
            {
                return $record;
            }
        }
        return $default;
    }
public function whereFirstOrDefault ( $ where , $ default = null ) { $ where = LambdaUtils :: toConditionCallable ( $ where ) ; foreach ( $ this as $ record ) { if ( call_user_func ( $ where , $ record ) ) { return $ record ; } } return $ default ; }
Get first item matching to callable or default
@param callable|array $where
@param mixed $default
@return mixed
Get first item matching to callable or default