| Author |
Comment/Response |
Vital
|
12/12/02 10:10am
I have two lists:
k1={{a,{11,12,13}},{b,{14,15,16}},{c,{17,18,19}},{d,{20,21,22}}};
k2={b,d};
How to get list with the help of Select[] function, such as:
{b,{11,12,13},{d,{20,21,22}}} ?,
that is to make selection from the list k1 according to the list k2. Meanwhile I have learned to make only so: Select[k1,#[[1]]==b||#[[1]]==d&].
Please, help me; it`s very necessary; Thank`s...
URL: , |
|