What's the main use case for TupleX? Why would one...
# arrow
d
What's the main use case for TupleX? Why would one use them rather than making a custom data class?
s
Their use-case is niche, prefer custom data classes in business code. It's useful when you just need to destructure for example:
Copy code
val (a, b, c, d) = parZip(...) { Tuple4(...) }
Or in generic code, to piece things together. To be honest, I only very rarely use it. Like when I need to combine 10+ validated elements.
👍 1