Feature Overview
This feature enables you to combine Func calls into pipelines.
This feature enables you to combine Func calls into pipelines.
You need to include R.apex if you want to enable this feature.
public class PipelineDemo {
public static void main() {
Integer val = 1
|> R.inc
|> R.add.apply(1);
val = 2 |> R.inc;
}
}
public class PipelineDemo {
public static void main() {
Integer val = (Integer)((Func)R.add.apply(1)).run(((Func)R.inc).run(1));
val = (Integer)((Func)R.inc).run(2);
}
}
The data flows from top to bottom, left to right, running through each Func.
Contribute on Github! Edit this section.