Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

Re: Lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg3998] Re: Lists
  • From: rmj at leland.Stanford.EDU (Roger M. Jones)
  • Date: Tue, 14 May 1996 02:14:12 -0400
  • Organization: Stanford University, CA 94305, USA
  • Sender: owner-wri-mathgroup at wolfram.com

       I have a two dimensional list (i.e. {{1, 23}, {2, 24}, {3, 25}, 
{4, 26}}), and I want to remove all the first values in each pair of 
numbers.  For instance, for the first pair, I want it to read {23}, and 
for the second, {24} instead of {2, 24}. 
        Any help would be greatly appreciated.

-Alex Bates

In[1]:=
Last/@{{1, 23}, {2, 24}, {3, 25},
{4, 26}}
Out[1]=
{23, 24, 25, 26}


-- 
Regards,

Roger Jones

(rmj at leland.stanford.edu)

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Inverse of IntegerDigits? and "Index" function?
  • Next by Date: Plotting 3D Hyperquadric models
  • Previous by thread: Re: Lists
  • Next by thread: Re: Lists