Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Extract numbers from list' topicStudent Support Forum > General > Archives > "Extract numbers from list"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
10/23/12 7:28pm

If list={first,second...} then Map[f,list] will create {f[first],f[second]...} for all the items in list.

So

In[1]:= data={{x,y},{c,v}};
Map[First,data]

Out[2]= {x,c}

Study
http://reference.wolfram.com/mathematica/ref/Map.html


URL: ,

Subject (listing for 'Extract numbers from list')
Author Date Posted
Extract numbers from list 215 10/23/12 4:25pm
Re: Extract numbers from list Bill Simpson 10/23/12 7:28pm
Re: Extract numbers from list Peter Pein 10/24/12 06:21am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic