benleggiero
04/06/2017, 11:57 PMQuadruple<A, B, C, D>
, Option<T>
, Either<L, R>
, fun Quadruple<*, *, *, *>.sendIntoOuterSpace()
and many others could be implemented... outside of stdlib. 🙃
@benleggiero why do you think Triple should have all that Pair has? For example, I ignore existence of both in most cases simple smile
@mbstavola can you show any use-cases? I just wonder why do you need this.
1 reply
Because Pair and Triple are just tuples. Personally, I don't think they should be two classes but that's the decision of the language designers. As far as I care they're the same thing. Hence why I made this:
https://github.com/BlueHuskyStudios/Blue-Base/blob/6379cc2237400b5d1e52d60fb9338775774c3f21/JVM/src/org/bh/tools/base/func/Functional%20Conveniences.kt#L16-L70