Can you make this shorter, more elegant, and more julia-esque

Ok, here’s a small modification that writes the result as a CSV file:

using DelimitedFiles   # This is a standard library module.

writedlm(
    "test.csv",
    Iterators.product(Iterators.repeated((0, 1), 5)...),
    ','
)
4 Likes