MathGroup Archive 2007

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

Search the Archive

Re: Length of random index into list


On Apr 10, 2:19 am, Jean-Marc Gulliet <jeanmarc.gull... at gmail.com>
wrote:
> 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

Found a strange solution...
node=Length[s[[## & @@ indices]]]

(c:



  • Prev by Date: Re: NDSolve can't solve a complex ODE correctly?
  • Next by Date: Clean-up code for packages
  • Previous by thread: Re: Length of random index into list
  • Next by thread: Re: Length of random index into list