public static string GetSymbol(this DefinableFxUnaryOperator source) { var op = (OverloadableCodeUnarySymmetricOperator)source; return(op.GetSymbol()); }
public static OverloadableCodeUnarySymmetricOperator ToCodeOperator(this DefinableFxUnaryOperator source) { var res = (OverloadableCodeUnarySymmetricOperator)source; return(res); }
public UnaryOperatorDefinition(DefinableFxUnaryOperator @operator, Func <Flexpression, Flexpression> expression) { Operator = @operator; Expression = expression; }
public static Func <Flexpression, Flexpression> GetOperatorDefinitionOrNull( this IReadOnlyDictionary <DefinableFxUnaryOperator, Func <Flexpression, Flexpression> > source, DefinableFxUnaryOperator @operator) { return(source.TryGetValue(@operator, out var value) ? value : null); }
public static UnaryOperatorDefinition Create( DefinableFxUnaryOperator @operator, Func <Flexpression, Flexpression> expression) { return(new UnaryOperatorDefinition(@operator, expression)); }