예제 #1
0
파일: randomt.py 프로젝트: LFY/RandomT
def RndVar(gen, *args):
    return mk_class_with_interface(type(gen()), evalapp_bind, Fmap, promote)(App(gen, *args))
예제 #2
0
파일: randomt.py 프로젝트: LFY/RandomT
def RndVar(gen, *args):
    return mk_class_with_interface(type(gen()), evalapp_bind, Fmap,
                                   promote)(App(gen, *args))
예제 #3
0
파일: randomt.py 프로젝트: LFY/RandomT
 def call(*args):
     other_exprs = map(lambda e: e.expr, map(promote, args))
     app_node = Bind(f, *other_exprs)
     result = interp(app_node)
     return mk_class_with_interface(type(result), interp, Fmap, promote)(app_node)
예제 #4
0
파일: randomt.py 프로젝트: LFY/RandomT
 def call(*args):
     other_exprs = map(lambda e: e.expr, map(promote, args))
     app_node = Bind(f, *other_exprs)
     result = interp(app_node)
     return mk_class_with_interface(type(result), interp, Fmap,
                                    promote)(app_node)