Set puzzle: Difference between revisions

Line 1,338:
 
=={{header|Mathematica}}==
A simple brute force approach. This code highlights two things: 1) a few of Mathematica's "higher-level" functions such as Tuples and Subsets and 2) the straightforwardness enabled by the language's "dynamic typing" (more precisely, its symbolic semantics) and its useusage of lists for everything (in this particular example, the fact that functions such as Tuples and Entropy can be used on lists with arbitrary content).
 
<lang Mathematica>colors = {Red, Green, Purple};
Anonymous user