39 if (
Argument.AssociatedObjectValue is
string s)
41 if (
string.IsNullOrEmpty(s))
44 char[] Characters = s.ToCharArray();
46 System.Array.Reverse(Characters);
65 for (i = 0; i < c; i++)
66 E[c - i - 1] =
Argument.GetElement(i);
68 return Argument.Encapsulate(E,
this);
80 double[] E =
new double[c];
83 for (i = 0; i < c; i++)
98 Complex[] E =
new Complex[c];
101 for (i = 0; i < c; i++)
116 bool[] E =
new bool[c];
119 for (i = 0; i < c; i++)
Class managing a script expression.
override IElement EvaluateNonVector(IElement Argument, Variables Variables)
Evaluates the function on a non-vector. By default, the non-vector argument is converted to a vector ...
override string FunctionName
Name of the function
override IElement EvaluateVector(BooleanVector Argument, Variables Variables)
Evaluates the function on a vector argument.
Reverse(ScriptNode Argument, int Start, int Length, Expression Expression)
Reverse(v)
override IElement EvaluateVector(DoubleVector Argument, Variables Variables)
Evaluates the function on a vector argument.
override IElement EvaluateVector(ComplexVector Argument, Variables Variables)
Evaluates the function on a vector argument.
override IElement EvaluateVector(IVector Argument, Variables Variables)
Evaluates the function on a vector argument.
ScriptNode Argument
Function argument.
Base class for funcions of one vector variable.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
int Start
Start position in script expression.
Basic interface for all types of elements.
Basic interface for vectors.