Exemple #1
0
        public static string GetSymbol(this DefinableFxUnaryOperator source)
        {
            var op = (OverloadableCodeUnarySymmetricOperator)source;

            return(op.GetSymbol());
        }
Exemple #2
0
        public static OverloadableCodeUnarySymmetricOperator ToCodeOperator(this DefinableFxUnaryOperator source)
        {
            var res = (OverloadableCodeUnarySymmetricOperator)source;

            return(res);
        }
Exemple #3
0
 public UnaryOperatorDefinition(DefinableFxUnaryOperator @operator, Func <Flexpression, Flexpression> expression)
 {
     Operator   = @operator;
     Expression = expression;
 }
Exemple #4
0
 public static Func <Flexpression, Flexpression> GetOperatorDefinitionOrNull(
     this IReadOnlyDictionary <DefinableFxUnaryOperator, Func <Flexpression, Flexpression> > source,
     DefinableFxUnaryOperator @operator)
 {
     return(source.TryGetValue(@operator, out var value) ? value : null);
 }
Exemple #5
0
 public static UnaryOperatorDefinition Create(
     DefinableFxUnaryOperator @operator,
     Func <Flexpression, Flexpression> expression)
 {
     return(new UnaryOperatorDefinition(@operator, expression));
 }