MathGroup Archive 2007

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

Search the Archive

Re: Length of random index into list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74891] Re: Length of random index into list
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Tue, 10 Apr 2007 05:16:54 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <evd3sk$5iv$1@smc.vnet.net>

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