Let's say I need a large array of items that are all the combinations of a number of arrays, eg:
['a','b','c','d'...
['1','2','3','4'...
['z','x','c','v'...
...
The resulting list would be something like:
['a1z', 'a1x', 'a1c'... 'b1z', 'b1x', 'b1c'...
Would it be cheaper to use a function that can just build this array at runtime or to store the entire array in the contract itself?