/// <summary> /// Initialize /// </summary> /// <param name="type">The function type</param> /// <param name="val">The object</param> public LFunction(LFunctionType type, object val) { this.Value = val; this.Type = type; }
public object VisitLambda(LambdaExpr expr) { var funcType = new LFunctionType(); funcType.Name = expr.Expr.Meta.Name; funcType.FullName = funcType.Name; var func = new LFunction(expr.Expr); func.Type = funcType; return func; }