Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16796
| From | andymhancock@gmail.com |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Redudant code for style purposes? |
| Date | 2014-04-14 09:27 +0000 |
| Message-ID | <lig9mj$cfd$1@smc.vnet.net> (permalink) |
| References | <lidla5$la$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
On Sunday, April 13, 2014 5:27:33 AM UTC-4, andymh...@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.
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar
Redudant code for style purposes? andymhancock@gmail.com - 2014-04-13 09:27 +0000 Re: Redudant code for style purposes? andymhancock@gmail.com - 2014-04-14 09:27 +0000
csiph-web