Something like
Base.Iterators.product(ntuple(_ -> A, Val(N))...)
The function that implements it should use value types if possible.
Something like
Base.Iterators.product(ntuple(_ -> A, Val(N))...)
The function that implements it should use value types if possible.