Convert iterator (of tuples) to vector

Okay, misunderstood what you wanted. Then you can use vec:

julia> iter = Iterators.product(1:10,1:10,1:10);

julia> vec(collect(iter))
1000-element Vector{Tuple{Int64, Int64, Int64}}:
 (1, 1, 1)
 (2, 1, 1)
 ⋮
 (9, 10, 10)
 (10, 10, 10)
3 Likes