Generate all possible codewords given a dictionary

Thanks! To completely answer my question, here is the generalization to arbitrary n.

d = ['a', 'b', 'c']
n = 4
dd = fill(d, n)
for c in IterTools.product(dd...)
    println(c)
end