Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Combining two lists' topicStudent Support Forum > General > Archives > "Combining two lists"

Next Comment >Help | Reply To Topic
Author Comment/Response
joe
02/28/12 9:51pm

I have been asking myself for some time how to do the following:

Say I have two lists, {a,b,c,d,e} and {f,g,h,i,j}. Now i want to combine them to {{a,f},{b,g},{c,h},{d,i},{e,j}} (ie put the 2.list of the i-th elements of both lists as the i-th element into a new list). Is there a fast way to do that (so no for loops etc)? Thanks in advance
Joe

URL: ,

Subject (listing for 'Combining two lists')
Author Date Posted
Combining two lists joe 02/28/12 9:51pm
Re: Combining two lists jf 02/29/12 12:23pm
Re: Combining two lists Bill Simpson 02/29/12 1:33pm
Re: Combining two lists Nasser M. Ab... 02/29/12 4:35pm
Re: Combining two lists Bill 02/29/12 6:45pm
Next Comment >Help | Reply To Topic