streamflow icon indicating copy to clipboard operation
streamflow copied to clipboard

Can I turn a generator object into a tuple without using `tuple()`

Open Montana opened this issue 2 years ago • 0 comments

It's possible to use the following code to create a list:

[i+1 for i in(0,1,2)]
[1, 2, 3]

Can a similar thing be done with tuples in Streamflow?

(i+1 for i in(0,1,2)),
(<generator object <genexpr> at 0x03A53CF0>,)

Thanks Lockheed, Montana Mendy

Montana avatar Oct 03 '22 23:10 Montana