MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

complicated list selector


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 ?


  • Prev by Date: Plotting 3d-mesh files / Isosurfaces
  • Next by Date: escaping quote for use with a selectionplaceholder
  • Previous by thread: Re: Plotting 3d-mesh files / Isosurfaces
  • Next by thread: Re: complicated list selector