Let's say I have a procedure getTuple(): (int, int, int)
. How do I iterate over the returned tuple? It doesn't look like items
is defined for tuple
, so I can't do for i in getTuple()
.
I initially had this returning a sequence
, which proved to be a bottleneck. Can I get this to work without affecting performance? I guess as a last resort I could unroll my loop, but is there any way around that?
newSeq
. This was in the innermost loop of some performance-critical simulation code. I just testedarray[N, int]
and it's vastly superior - Thanks! – Ignaz