{ // C# has a => (lambda)
public RakudoObject Invoke(ThreadContext tc, RakudoObject self, RakudoObject capture)
{
for (int i = 0; i < CaptureHelper.NumPositionals(capture); i++)
{
RakudoObject value = CaptureHelper.GetPositional(capture, i);
RakudoObject strMeth = self.getSTable().FindMethod(tc, value, "Str", 0);
RakudoObject strVal = strMeth.getSTable().Invoke(tc, strMeth,
CaptureHelper.FormWith( new RakudoObject[] { value } ));
System.out.print(Ops.unbox_str(null, strVal));
}
return CaptureHelper.Nil();
}
}
));
settingContext.LexPad.SetByName("say",
CodeObjectUtility.WrapNativeMethod( new RakudoCodeRef.IFunc_Body()
{ // C# has a => (lambda)
public RakudoObject Invoke(ThreadContext tc, RakudoObject self, RakudoObject capture)
{
for (int i = 0; i < CaptureHelper.NumPositionals(capture); i++) {
RakudoObject value = CaptureHelper.GetPositional(capture, i);
RakudoObject strMeth = self.getSTable().FindMethod(tc, value, "Str", 0);
RakudoObject strVal = strMeth.getSTable().Invoke(tc, strMeth,
CaptureHelper.FormWith( new RakudoObject[] { value } ));
System.out.print(Ops.unbox_str(null, strVal));
}
System.out.println();
return CaptureHelper.Nil();