MathGroup Archive 2014

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

Search the Archive

Re: Redudant code for style purposes?

  • To: mathgroup at
  • Subject: [mg132583] Re: Redudant code for style purposes?
  • From: andymhancock at
  • Date: Mon, 14 Apr 2014 05:27:30 -0400 (EDT)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • References: <lidla5$la$>

On Sunday, April 13, 2014 5:27:33 AM UTC-4, andymh... at 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