Flow.apex has a built-in FlowScript to run Funcs dynamically.
Previously, we run R.product like this:
R.product
Object result = R.product.runN(new List{ 1, 2, 3, 4}); // Generate 24 from 1 * 2 * 3 * 4Now with FlowScript, we have:Object result = Flow.eval('product(1, 2, 3, 4)'); // Generate 24 from 1 * 2 * 3 * 4FlowScript makes invocations of Funcs more natural.Done
Now with FlowScript, we have:
Object result = Flow.eval('product(1, 2, 3, 4)'); // Generate 24 from 1 * 2 * 3 * 4
FlowScript makes invocations of Funcs more natural.