Commits

Leonardo Santagada  committed 0a2b7d3

whitespace removal

  • Participants
  • Parent commits 8b24b3c

Comments (0)

Files changed (1)

     env.update(vars(math)) # sin, sqrt, ...
     env.update(
      {'+':op.add, '-':op.sub, '*':op.mul, '/':op.div, 'not':op.not_,
-      '>':op.gt, '<':op.lt, '>=':op.ge, '<=':op.le, '=':op.eq, 
+      '>':op.gt, '<':op.lt, '>=':op.ge, '<=':op.le, '=':op.eq,
       'equal?':op.eq, 'eq?':op.is_, 'length':len, 'cons':lambda x,y:[x]+y,
-      'car':lambda x:x[0],'cdr':lambda x:x[1:], 'append':op.add,  
-      'list':lambda *x:list(x), 'list?': lambda x:isa(x,list), 
+      'car':lambda x:x[0],'cdr':lambda x:x[1:], 'append':op.add,
+      'list':lambda *x:list(x), 'list?': lambda x:isa(x,list),
       'null?':lambda x:x==[], 'symbol?':lambda x: isa(x, Symbol)})
     return env
 
     if isa(x, Symbol):             # variable reference
         return env.find(x)[x]
     elif not isa(x, list):         # constant literal
-        return x                
+        return x
     elif x[0] == 'quote':          # (quote exp)
         (_, exp) = x
         return exp