[racket] Generating Tuples from List

From: Ashok Bakthavathsalam (ashokb at kggroup.com)
Date: Wed Feb 29 21:52:05 EST 2012

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
No, this is not homework. So, would appreciate code if available.


  % ashok
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120301/d2d293f4/attachment.html>

Posted on the users mailing list.