use of primal.fp.Funs.Iterate in project suite by stupidsing.
the class FunCreatorTest method testObject.
@Test
public void testObject() {
Int_Int inc = i -> i + 1;
Iterate<FunExpr> fun = i -> f.object(inc).invoke("apply", i);
assertEquals(3, LambdaInstance.of(Int_Int.class, fun).newFun().apply(2));
}
Aggregations