MathGroup Archive 2010

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

Search the Archive

Generate #s


Dear Group:
Suppose I have a list of ordered integers:
example={1,5,7,9}
Based on it, I want to generate a list of the form:
{#[[1]], #[[5]],#[[7]],#[[9]]}
 
I tested with simple things like:
Table[#[[example[[i]]]], {i,1,Length[example]}]
to no avail.
 
How can I do it?


  • Prev by Date: Re: Primitive Disk Gradient Fills in Graphics
  • Next by Date: Integration by part
  • Previous by thread: Re: Accessing static members with J/Link
  • Next by thread: Re: Generate #s