Пример #1
0
 /// <summary>Reusable native method for concatenation</summary>
 /// <param name="ctx">Current interpreter</param>
 /// <param name="receiver">Object on which the method was
 /// requested</param>
 /// <param name="other">Argument to the method</param>
 public static GraceObject MConcat(EvaluationContext ctx,
                                   GraceObject receiver,
                                   GraceObject other)
 {
     return(Iterables.Concatenate(receiver, other));
 }
Пример #2
0
 /// <summary>Native method for Grace ++</summary>
 /// <param name="ctx">Current interpreter</param>
 /// <param name="other">Second iterable to concatenate</param>
 public GraceObject Concat(EvaluationContext ctx, GraceObject other)
 {
     return(Iterables.Concatenate(this, other));
 }