use of suite.primitive.streamlet.IntObjStreamlet in project suite by stupidsing.
the class IntIntMap1 method streamlet.
public IntObjStreamlet<Integer> streamlet() {
return new IntObjStreamlet<>(() -> {
IntIntSource source = source_();
IntIntPair pair0 = IntIntPair.of(0, 0);
return IntObjOutlet.of(new IntObjSource<Integer>() {
public boolean source2(IntObjPair<Integer> pair) {
boolean b = source.source2(pair0);
if (b)
pair.update(pair0.t0, pair0.t1);
return b;
}
});
});
}
Aggregations