MathGroup Archive 2002

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

Search the Archive

more elements in a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32365] more elements in a list
  • From: "Juan" <erfa11 at hotmail.com>
  • Date: Wed, 16 Jan 2002 03:30:33 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

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