Show
Ignore:
Timestamp:
11/19/07 00:49:13 (14 months ago)
Author:
nishio
Message:

lang/unlambda/impl/in_python: replace I with lambda

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/unlambda/impl/in_python/unlambda_lambda.py

    r1758 r1759  
    6565    "parsed element" 
    6666 
    67 class I(Node): 
    68     "identity: `iX = X" 
    69     def __str__(self): 
    70         return "I" 
    71     def __call__(self, cont): 
    72         def I0(X, cont): 
    73             return cont(X) 
    74         return cont(I0) 
     67I = lambda: lambda c: c(lambda X, c: c(X)) 
    7568 
    7669class Dot(Node):