Multiple output streams in a for loop
Posted: Sat Jul 08, 2017 10:23 am
I have a for loop
It creates a output stream based on each value
I want it to be able to create individual separate output streams for each value
Currently as it iterates over the values in the for loop, it only leaves the most recent one with 1 output stream. Anything before that is not remembered
For example:
When I have 100 of x in y table, I am obviously left with only one o, where I wanted 100 o's (o1,o2,o3,etc.)
Can somebody show example lua code on how to accomplish this
Sorry if this is silly
It creates a output stream based on each value
I want it to be able to create individual separate output streams for each value
Currently as it iterates over the values in the for loop, it only leaves the most recent one with 1 output stream. Anything before that is not remembered
For example:
- Code: Select all
For x in y do:
o = output_stream(x)
When I have 100 of x in y table, I am obviously left with only one o, where I wanted 100 o's (o1,o2,o3,etc.)
Can somebody show example lua code on how to accomplish this
Sorry if this is silly