| Author |
Comment/Response |
Jeremie
|
02/28/13 1:36pm
How to name the elements of a list with the elements of another list? (see explanation)
I've done a program that import text files, read them and make a list of the data and another list with the name of the files and now I would like to each list of the data list with the corresponding file name of the second list. But it's where I got problem.
here's an example to clarify:
let's say I have the following lists named m and n:
m = {{1, 1}, {2, 2}, {3, 3}}
n = {a, b, c}
if I write then: n=m
it just replace each elements of n by the elements of m.
if I write: {a, b, c}={{1, 1}, {2, 2}, {3, 3}}
then it does what I want: the list {1,1} is asigned to the variable a
so How can we get this result with using the names of the lists: m and n ???
Any idea would be welcome!
URL: , |
|