Beispiel #1
0
 def g(c):
     f2 = myia_partial(f, 2)
     f3 = myia_partial(f, -2)
     if c:
         return f2
     else:
         return f3
Beispiel #2
0
def test_partial_1(x):
    def f(a, b):
        return a + b

    f2 = myia_partial(f, 2)
    return f2(x)
Beispiel #3
0
def test_prim_partial(x):
    def f(a, b):
        return a + b

    g = myia_partial(f, 2)
    return g(x)