MathGroup Archive 2014

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

Search the Archive

Re: Redudant code for style purposes?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132583] Re: Redudant code for style purposes?
  • From: andymhancock at gmail.com
  • Date: Mon, 14 Apr 2014 05:27:30 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <lidla5$la$1@smc.vnet.net>

On Sunday, April 13, 2014 5:27:33 AM UTC-4, andymh... at gmail.com wrote:
> The Mathematica Cookbook has an example:
> 
>    array = RandomReal[{0, 10}, 20]
> 
>    Table[List @@ array[[i ;; i + 1]], {i, 1, 16}]
> 
> I'm new to Mathematica, but to me, the "List @@" seems redundant.
> The statements give the same results if I remove it.  Is there a
> reason for this, either functionally or for clarity?

Murray, Bob,

Thanks for confirming that "List @@" is redundant, and for the
alternative statements for achieving the same thing.  I am not going
to echo your examples here.  Instead, I am going to assume that
Grouples is simply delayed in showing them here, and that they will
appear shortly.



  • Prev by Date: Re: List vs. array in Mathematica
  • Next by Date: Tracking progress in ParallelDo
  • Previous by thread: Re: Redudant code for style purposes?
  • Next by thread: Tracking progress in ParallelDo