RxTuples
RxTuples copied to clipboard
Future plans
Any plans for future development; any known issues?
Known issues, the tests have to be moved out of the android project into the library one.
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.
For lack of a better place to put this: :+1: Thanks from me too.
I'm very interested in eg "three Pairs into a Sextet"... and more ;-)
@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.
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 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());
}
};
}