complicated list selector
- To: mathgroup at smc.vnet.net
 - Subject: [mg98415] complicated list selector
 - From: summer <summertan at hotmail.com>
 - Date: Thu, 9 Apr 2009 05:55:07 -0400 (EDT)
 
I have the following list
data = {  {11, {121, 122}},   {21, {221, 222}},  {31, {321, 322}} };
>From each sublist, I want to extract the first element and the second element of the second sub-sub-list that is:
wanted_result={  {11, 122},   {21, 222},   {31, 322}   }
I tried 
data[[All, {1, {2,1}}]] 
but it gives me error.
What is the right selector ?
- Follow-Ups:
- Re: complicated list selector
- From: Adriano Pascoletti <adriano.pascoletti@dimi.uniud.it>
 
 
 - Re: complicated list selector