RxTuples icon indicating copy to clipboard operation
RxTuples copied to clipboard

Future plans

Open Rainer-Lang opened this issue 8 years ago • 7 comments

Any plans for future development; any known issues?

Rainer-Lang avatar Dec 11 '15 14:12 Rainer-Lang

Known issues, the tests have to be moved out of the android project into the library one.

pakoito avatar Dec 11 '15 14:12 pakoito

Future development: add the tuples for 9 and 10 elements. Add any other FuncN for any combo of tuples if requested, i.e. three Pairs into a Sextet.

pakoito avatar Dec 11 '15 14:12 pakoito

For lack of a better place to put this: :+1: Thanks from me too.

erickok avatar Dec 11 '15 21:12 erickok

I'm very interested in eg "three Pairs into a Sextet"... and more ;-)

Rainer-Lang avatar Jan 18 '16 15:01 Rainer-Lang

@Rainer-Lang Feel free to do a PR or list the ones that you want for when I have some time in the coming months.

pakoito avatar Jan 19 '16 01:01 pakoito

Please make an example for 3 and 4 to 7. So I can see how you want it and I can make for all others I need prs.

Rainer-Lang avatar Jan 20 '16 14:01 Rainer-Lang

@Rainer-Lang The pattern is quite simple. It'd look like

    public static <A, B, C, D, E, F, G> Func2<Triplet<A, B, C>, Quartet<D, E, F, G>, Septet<A, B, C, D, E, F, G>> toSeptetFromTripletAndQuartet() {
        return new Func2<Triplet<A, B, C>, Quartet<D, E, F, G>, Septet<A, B, C, D, E, F, G>>() {
            @Override
            public Septet<A, B, C, D, E, F, G> call(Triplet<A, B, C> objects, Quartet<D, E, F, G> objects2) {
                return Septet.with(objects.getValue0(), objects.getValue1(),  objects.getValue2(), objects2.getValue0(), objects2.getValue1(), objects2.getValue2(), objects2.getValue3());
            }
        };
    }

pakoito avatar Feb 14 '16 17:02 pakoito