use of suite.jdk.gen.FunExprM.BlockContFunExpr in project suite by stupidsing.
the class FunFactory method loop.
public FunExpr loop(Fun2<FunExpr, FunExpr, FunExpr> fun) {
BlockFunExpr expr = new BlockFunExpr();
Mutable<BlockFunExpr> m = Mutable.of(expr);
BlockBreakFunExpr b = new BlockBreakFunExpr();
b.block = m;
BlockContFunExpr c = new BlockContFunExpr();
c.block = m;
expr.expr = fun.apply(b, c);
return expr;
}
Aggregations