Lisphp_Runtime_Function::apply PHP Method

apply() final public method

final public apply ( Lisphp_Scope $scope, Lisphp_List $arguments )
$scope Lisphp_Scope
$arguments Lisphp_List
    public final function apply(Lisphp_Scope $scope, Lisphp_List $arguments)
    {
        $args = array();
        foreach ($arguments as $arg) {
            $args[] = $arg->evaluate($scope);
        }
        return $this->execute($args);
    }