[racket] Generating Tuples from List
Again, trying to mimic something available in Mathematica (Tuples - Wolfram
Mathematica 8 Documentation http://bit.ly/AgsIym).
How can this be accomplished in Racket? Here's an example from the
Mathematica documentation.
All possible 3-tuples of and :
In[1]:= <http://reference.wolfram.com/mathematica/ref/Tuples.html>
[image: Click for copyable
input]<http://reference.wolfram.com/mathematica/ref/Tuples.html>
Out[1]=
No, this is not homework. So, would appreciate code if available.
Thanks,
% ashok
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120301/d2d293f4/attachment.html>