Comments
Loading Dream Comments...
You must be logged in to write a comment - Log In
ArtistA beautiful purple-haired woman wearing a long purple velvet ankle-length dress with flouncy sleeves and purple suede high heels. She is holding two Rubik cubes, one in each hand.
Suppose we have two matrices, and we want to produce all combinations of pairs of values, in other words select each entry in turn from the first matrix and combine it with each entry in the ssecond matrix. A code example will clarify this :
Colurs <:: ("red", "green", "blue", "pink");
Plush <:: ("cat", "dog", "bunny", "bear");
Result <:: Colurs $., Plush;
ttyout (Result);
The output will be :
red cat green cat blue cat pink cat
red dog green dog blue dog pink dog
red bunny green bunny blue bunny pink bunny
red bear green bear blue bear pink bear
Note we have spelt "Colurs" the Vandanai way (see "#vandanai" and "#idiolect")
The outer product operator is $., that is Dollar Dot Comma which means Apply "Comma" (concatenation) to each element in the left operand by each element in the right operand, thus producing all combinations of pairings.
The production of all the colurs and plushies in a DDG drawing is left as an exercise for the reader, lol :)