Is there a way of doing essentially a vcat of tuples in a way that still allows th

Is there a way of doing essentially a vcat of tuples in a way that still allows the type of each element of the resultant tuple to be inferred at compile time?
My first instinct would be to do something like

supertuple = (tuple1..., tuple2...)

but I’m not sure this works as I’ve heard some bad things about the splat operator

Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack, or pinging the poster here on Discourse so they can follow this thread.
(Original message :slack:) (More Info)

Splatting seems fine in this case. The splat operator can be slow when used with collections whose length is not known to the compiler, but that’s not the case for tuples, and it can be slow when splatting large numbers of elements. So this would only be a problem if tuple1 and/or tuple2 were very long, in which case you’d probably already be having other issues.

1 Like