[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-math] list of pair
From: |
Francois Maltey |
Subject: |
[Axiom-math] list of pair |
Date: |
16 Mar 2006 19:20:50 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Hello,
I try to create a cartesian product :
[[10,1],[10,2],[10,3],[10,4],[10,5],[10,6],
[20,1],[20,2],[20,3],[20,4],[20,5],[20,6],
[30,1],[30,2],[30,3],[30,4],[30,5],[30,6]]
but I can't !
[[10*i,j] for i in 1..3 for j in 1..6] constructs [[10,1],[20,2],[30,3]]
[([10*i,j] for i in 1..3) for j in 1..6] constructs a Tupple, not a list.
[[[10*i,j] for i in 1..3] for j in 1..6] constructs a List List ...
How can I do this ?
Have a good day !
Francois
- [Axiom-math] list of pair,
Francois Maltey <=