| Author |
Comment/Response |
Nasser M. Abbasi
|
02/29/12 4:35pm
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}}
=========================
use Transpose like this:
lst1 = {a, b, c, d, e} ;
lst2 = {f, g, h, i, j};
Transpose[{lst1, lst2}]
{{a, f}, {b, g}, {c, h}, {d, i}, {e, j}}
--Nasser
URL: , |
|