Ejemplo n.º 1
0
def mk_fun(arity, points, otherwise):
    """
    Parameters
        arity : integer
        points : list of FunEntry
        otherwise : ErlangTerm
    """
    t = ErlangTerm()
    t.type = ErlangTerm.FUN
    t.arity = arity
    t.otherwise.CopyFrom(otherwise)
    if len(points):
        t.points.extend(points)
    return t
Ejemplo n.º 2
0
def mk_fun(arity, points, otherwise):
    """
    Parameters
        arity : integer
        points : list of FunEntry
        otherwise : ErlangTerm
    """
    t = ErlangTerm()
    t.type = ErlangTerm.FUN
    t.arity = arity
    t.otherwise.CopyFrom(otherwise)
    if len(points):
        t.points.extend(points)
    return t