MathGroup Archive 2007

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

Search the Archive

Re: Length of random index into list


bitRAKE wrote:
> node = Length@Extract[s, indices]
> 
> How can this be done without using Extract?
> 
> Regards,
> bitRAKE
> 
> 

Does

node = Length /@ s

fit your needs?

Or

node = Length[s[[indices]]]

Regards,
Jean-Marc


  • Prev by Date: A Bug or not a bug?
  • Next by Date: Job opportunities at Wolfram Research
  • Previous by thread: Length of random index into list
  • Next by thread: Re: Length of random index into list