use "for" loop to create list
- Subject: use "for" loop to create list
- From: Ether Jones
- Date: Tue, 3 Apr 2012 07:09:36 -0700 (PDT)
How do I create this list:
f(x):=x^2;
myList: [
[1, f(1)],
[2, f(2)],
[3, f(3)],
[4, f(4)],
[5, f(5)],
[6, f(6)],
[7, f(7)],
[8, f(8)],
[9, f(9)],
[10,f(10)]
];
... using a "for" loop?