Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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