MathGroup Archive 2002

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

Search the Archive

more elements in a list


I am sorry Tom's. Next time I will try before.

I think the best way to do things like that is to declare a function:

x={a,b,c};n={2,5,4};

f[u_,v_Integer]:= Table[u, {v}]

Then:

MapThread[f,{x,n}]//Flatten

Inner[f,x,n,List]//Flatten

saludos
Juan



_________________________________________________________________
Con MSN Hotmail súmese al servicio de correo electrónico más grande del 
mundo. http://www.hotmail.com/ES



  • Prev by Date: RE: Runs on a Ring
  • Next by Date: How To Change A Rule
  • Previous by thread: Re: more elements in a list
  • Next by thread: RE: more elements in a list