Drop iterator shape

Another hack is to use comprehension with if true clause

itr = Iterators.product(1:5, 1:2)
itr_flat = (x for x in itr if true)
collect(itr_flat) == vec(collect(itr))
1 Like