Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16789
| From | andymhancock@gmail.com |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Redudant code for style purposes? |
| Date | 2014-04-13 09:27 +0000 |
| Message-ID | <lidla5$la$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
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?
Back to comp.soft-sys.math.mathematica | Previous | Next — Next 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