Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'How to use Select[..]' topicStudent Support Forum > General > "How to use Select[..]"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'How to use Select[..]')
Author Date Posted
How to use Select[..] Vital 12/12/02 10:10am
Re: How to use Select[..] Henry Lamb 12/14/02 02:31am
Next Comment >Help | Reply To Topic