Search in sources :

Example 1 with IntObjStreamlet

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;
            }
        });
    });
}
Also used : IntObjStreamlet(suite.primitive.streamlet.IntObjStreamlet) IntIntSource(suite.primitive.IntIntSource) IntIntPair(suite.primitive.adt.pair.IntIntPair)

Aggregations

IntIntSource (suite.primitive.IntIntSource)1 IntIntPair (suite.primitive.adt.pair.IntIntPair)1 IntObjStreamlet (suite.primitive.streamlet.IntObjStreamlet)1