Lisphp_List::car PHP Method

car() public method

public car ( )
    public function car()
    {
        return isset($this[0]) ? $this[0] : null;
    }

Usage Example

示例#1
0
文件: Let.php 项目: lisphp/lisphp
 public function apply(Lisphp_Scope $scope, Lisphp_List $arguments)
 {
     $vars = $arguments->car();
     $scope = new Lisphp_Scope($scope);
     foreach ($vars as $var) {
         list($var, $value) = $var;
         $scope->let($var, $value->evaluate($scope->superscope));
     }
     foreach ($arguments->cdr() as $form) {
         $retval = $form->evaluate($scope);
     }
     return $retval;
 }
All Usage Examples Of Lisphp_List::car