Ejemplo n.º 1
0
 public FunctionIValueDelegate(int argumentCountMinimum, int argumentCountMaximum, Func <Environment, IValue[], IExpression> content, Func <IExpression[], IExpression> contentDifferentiate)
 {
     Content = new FunctionDelegate <IValue>(argumentCountMinimum, argumentCountMaximum, content, (e, a) =>
     {
         return((a?.Format(e) as NumberExpression)?.Content);
     }, contentDifferentiate);
 }
Ejemplo n.º 2
0
 public FunctionExpressionDelegate(int argumentCountMinimum, int argumentCountMaximum, Func <Environment, Expressions.IExpression[], IExpression> content, Func <IExpression[], IExpression> contentDifferentiate)
 {
     Content = new FunctionDelegate <IExpression>(argumentCountMinimum, argumentCountMaximum, content, (e, a) => a, contentDifferentiate);
 }