Example #1
0
def test_vm_icall_clos(l):
    y = 1 + 1

    def add2(v):
        return v + y

    return list_map(add2, l)
Example #2
0
def test_prim_list_map(l):
    def add2(a):
        return a + 2

    return list_map(add2, l)
Example #3
0
def test_vm_icall_prim(l):
    return list_map(scalar_usub, l)
Example #4
0
def test_vm_icall_fn(l1, l2):
    def mulm(x, y):
        return x * -y

    return list_map(mulm, l1, l2)